I have used Ampps 3.7 and 3.8 both at my home dekstop and my work desktop. And I can't get virtual hosts to work anymore. They just display the default /www folder from ampps itself. I have this issue all the time, re-installing works sometimes. I have also tried that, as updating didn't help either.
I always restart apache after adding a virtual host with localhost/ampps but it just doesn't work anymore.
I have checked the virtualhosts file. That one is correct as far as I can see, and as for the host file of windows itself just the same.
Install path:
Code C:\Program Files (x86)\Ampps
Httpd-vhosts.conf path:
Code C:\Program Files (x86)\Ampps\apache\conf\extra\
Contents:
Code
<VirtualHost 127.0.0.1:80>
<Directory "c:/users/nlxdodge/documents/loyals projects/loc.alpha.nl/website/public_html">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName loc.alpha.nl
ServerAlias loc.alpha.nl
ScriptAlias /cgi-bin/ "c:/users/nlxdodge/documents/loyals projects/loc.alpha.nl/website/public_html/cgi-bin/"
DocumentRoot "c:/users/nlxdodge/documents/loyals projects/loc.alpha.nl/website/public_html"
ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/loc.alpha.nl.err"
CustomLog "C:/Program Files (x86)/Ampps/apache/logs/loc.alpha.nl.log" combined
</VirtualHost>
Windows host file contents:
Code 127.0.0.1 loc.alpha.nl
If anyone has experienced this and has a way to fix this, well I can't thank you enough.
Even changing the virtual host in the apache config file and reloading doesn't work. So I can't develop locally anymore now.
|