Xampp Vhosts
Posted: 11. July 2010 12:04
Hello to all. I set-up a server with two virtual websites a localhost and another one.
Locally all works fine but users can go to localhost by typing the ip address of the server but not to the other site.
Here is my vhosts file:
In windows hosts file i added the line 127.0.0.1 beautyflair.gr
My final move were to put as dns server in domain name the ip address of my router which have as dmz host my server.
What am i doing wrong?
Thank you.
Locally all works fine but users can go to localhost by typing the ip address of the server but not to the other site.
Here is my vhosts file:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:\srvroot"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@beautyflair.gr
DocumentRoot "D:\srvroot\beautyflair.gr"
ServerName beautyflair.gr
ErrorLog "logs\beautyflair.log"
CustomLog "logs\beautyflair-access.log" combined
</VirtualHost>
In windows hosts file i added the line 127.0.0.1 beautyflair.gr
My final move were to put as dns server in domain name the ip address of my router which have as dmz host my server.
What am i doing wrong?
Thank you.