Getting VHosts working with EasyPHP

2019-04-08 10:51发布

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

1条回答
太酷不给撩
2楼-- · 2019-04-08 11:23

At the end of your httpd.conf add : Include conf/whateveryouwant.conf And put your virtual hosts in this file

查看更多
登录 后发表回答