So I've been trying to setup vhosts on my new Windows 10 Installation with EasyPHP Devserver 16.1.
I've modified etc/vhosts to include my new domain (mysite.local), which works, but still points to the default easyphp directory. So I modified httpd-vhosts.conf to point that domain to my new directory:
<VirtualHost *:80>
DocumentRoot "C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\Users\Chris\Documents\Web_Development\mysite"
ServerName mysite.local
</VirtualHost>
However when I start the server, it wipes this file so that it's just blank, and my domain still points to the default easyphp directory. What would be causing this/how can I fix it?
I've tried putting the vhosts directly into httpd.conf, however that doesn't change anything, still my new domain points to the default folder.
I'm really not getting anywhere with this and I absolutely need vhosts working so I can work on multiple sites.
I could go back to Xampp, which is what I used on Mac OS, however I had an ongoing issue with that where PHPExcel didn't export properly so I'd like to try with Easy PHP
OPEN SOURCE / FREE TO USE.
First, you need to navigate to D:\xampp\apache\conf\extra or wherever your XAMPP files are located. In my case, my XAMPP file is located in drive D. Then, edit httpd-vhosts. conf with any text editor.
At the end of your httpd.conf add : Include conf/whateveryouwant.conf And put your virtual hosts in this file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With