I would like to migrate my current websites from windows to xammp,
so i tried making som VHOSTs appended to the bottom of httpd.conf
and they work fine. Except that the php files get parses på PHP.
The php souce is with mysql passwords and all is served.
I havn't touched any other conf parameters.. just appended
these line to the bottom of httpd.conf
what did i do wrong here?
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs
ServerName default
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/dir1
ServerName domain1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/dir2
ServerName domain2.com
</VirtualHost>
any help very appreciated!