<VirtualHost 127.0.0.1:80> <Directory "/www/companyname"> Options FollowSymLinks Indexes AllowOverride All Order deny,allow allow from All </Directory> ServerName local.companyname.com ServerAlias local.companyname.com ScriptAlias /cgi-bin/ "/www/companyname/cgi-bin/" DocumentRoot "/www/companyname" ErrorLog "/Applications/AMPPS/apache/logs/local.companyname.com.err" CustomLog "/Applications/AMPPS/apache/logs/local.companyname.com.log" combined </VirtualHost>
then I restart the AMPPS, but it still doesn't work. It would connect to the default 127.0.0.1 page not my '/www/companyname' page.
The problem is due the default setting of AMPPS, you should create 'extra' folder under the AMPPS/conf folder, it is not the one under AMPPS/apache/extra
, should be AMPPS/conf/extra
.