Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > apache 2.0.47 on windows - vhost config problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    apache 2.0.47 on windows - vhost config problem  
NEWS TPI


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-04 12:20 PM

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 ]



    Re: apache 2.0.47 on windows - vhost config problem  
JBowler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: apache 2.0.47 on windows - vhost config problem  
Davide Bianchi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-04 12:20 PM

NEWS TPI <jkozik@poczta.onet.pl> wrote:
quote:
> but its not working
"its not working" means? If you ping host_0 or host_1 do you get an answer? What happen when you access host_0 using a browser? What should happen? Davide




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:44 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register