01-19-04 12:20 PM
Change your server name to the name of the site like www.thatsite.com.
<VirtualHost *>
ServerAdmin webmaster@thatsite.com
DocumentRoot "d:/web/thatsite_com/www"
ServerName www.thatsite.com
ErrorLog "d:/web/thatsite_com/logs/thatsite_com-error_log.log"
CustomLog "d:/web/thatsite_com/logs/thatsite_com-access_log.log"
combined
</VirtualHost>
This is a copy and paste from my live webserver. Your problem might not be
the vhost lines but other settings in your httpd.conf file. Try looking
there to make sure its listening on the correct IP/host name. It can be a
number of things. Hard to say without seeing the httpd.conf file.
HTH
JBowler
"NEWS TPI" <jkozik@poczta.onet.pl> wrote in message
news:bqt7rs$70n$1@atlantis.news.tpi.pl...quote:
> I've got a problem with configuration of vhost it's my http.config:
>
> NameVirtualHost *
> #---------------------------- VHosts ------------
> <VirtualHost *>
> ServerAdmin webmaster@samba.local.pl
> DocumentRoot "C:/http/vhost0/htdocs"
> ServerName host_0
> </VirtualHost>
>
> <VirtualHost *>
> ServerAdmin webmaster@samba.local.pl
> DocumentRoot "C:/http/vhost1/htdocs"
> ServerName host_1
> </VirtualHost>
>
> but its not working - it's based on one local IP - what do I do wrong ???
>
> please help - JK
>
>
[ Post a follow-up to this message ]
|