Hi
I have been trying to sort this one for months...
I have virtual hosts running fine on my local machine:
httpd.conf:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/htdocs"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName osmos.localhost
ServerAlias osmos.localhost
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/osmos"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin"
</VirtualHost>
hosts:
127.0.0.1 localhost
127.0.0.1 osmos.localhost
But when I try to get virtual hosts working on my web server, It still directs me to the main web site...![[cry] [cry] [cry]](/data/assets/smilies/cry.gif)
HTTPD.conf
NameVirtualHost 210.54.XXX.XXX
<VirtualHost 210.54.XXX.XXX>
ServerName etime.XXX.co.nz
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/htdocs"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
</VirtualHost>
<VirtualHost 210.54.XXX.XXX>
ServerName osmos.XXX.co.nz
ServerAlias osmos.XXX.co.nz
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/osmos"
ScriptAlias /cgi-bin/ "C:/Apache2/osmos/cgi-bin"
</VirtualHost>
Hosts:
127.0.0.1 localhost
210.54.XXX.XXX etime.XXX.co.nz
210.54.XXX.XXX osmos.XXX.co.nz
Like I say, I have been trying to get this to work off and on for many months and have still not found an answer.. PLEASE can someone here point me to what is wrong?? My site goes commercial soon and I really need this done...![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)
Cheers in advance![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Tracey
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!
I have been trying to sort this one for months...
I have virtual hosts running fine on my local machine:
httpd.conf:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/htdocs"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName osmos.localhost
ServerAlias osmos.localhost
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/osmos"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin"
</VirtualHost>
hosts:
127.0.0.1 localhost
127.0.0.1 osmos.localhost
But when I try to get virtual hosts working on my web server, It still directs me to the main web site...
![[cry] [cry] [cry]](/data/assets/smilies/cry.gif)
HTTPD.conf
NameVirtualHost 210.54.XXX.XXX
<VirtualHost 210.54.XXX.XXX>
ServerName etime.XXX.co.nz
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/htdocs"
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
</VirtualHost>
<VirtualHost 210.54.XXX.XXX>
ServerName osmos.XXX.co.nz
ServerAlias osmos.XXX.co.nz
ServerAdmin tracey@XXX.co.nz
DocumentRoot "C:/Apache2/osmos"
ScriptAlias /cgi-bin/ "C:/Apache2/osmos/cgi-bin"
</VirtualHost>
Hosts:
127.0.0.1 localhost
210.54.XXX.XXX etime.XXX.co.nz
210.54.XXX.XXX osmos.XXX.co.nz
Like I say, I have been trying to get this to work off and on for many months and have still not found an answer.. PLEASE can someone here point me to what is wrong?? My site goes commercial soon and I really need this done...
![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)
Cheers in advance
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Tracey
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!