You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mandrich <ma...@4fts.com> on 2003/09/19 18:09:07 UTC

Re: [users@httpd] Virtual Hosting Woes....... (forgot the specifics)

Apache 1.3.28 on FreeBSD 4.8.

Mark
----- Original Message ----- 
From: "Mandrich" <ma...@4fts.com>
To: <us...@httpd.apache.org>
Sent: Friday, September 19, 2003 10:47 AM
Subject: [users@httpd] Virtual Hosting Woes.......


> Hi All,
>
> I'm having some difficulty getting my virtual hosting to work. Apache
starts
> fine and shows no errors. All domains have entries on my local name server
> that point to the one IP for the machine. Any of the domains I've created
> route to the box, but I only get the default directory and not the
assigned
> directory regardless of which site I request. Nothing shows up in the logs
> specified under the virtual hosting directive, and the http access log
just
> shows a regular served request for the domain I requested. I've done my
best
> to read through the apache online docs, but it rally seems pretty straight
> forward. I must be overlooking something really simple. Any thoughts or
> suggestions? Are there directives that I should comment out form the
'main'
> server section? Below is my Virtual hosting section:
>
> NameVirtualHost 192.168.0.200:80
>
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a known
> # server name.
> #
> #<VirtualHost *:80>
> #    ServerAdmin webmaster@dummy-host.example.com
> #    DocumentRoot /www/docs/dummy-host.example.com
> #    ServerName dummy-host.example.com
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log common
> #</VirtualHost>
>
> <VirtualHost 192.168.0.200:80>
> ServerName www.Dom1.com
> DocumentRoot /var/local/www/data/Dom1
> ErrorLog /var/log/Dom1-error_log
> CustomLog /var/log/Dom1-access_log common
> </VirtualHost>
>
> <VirtualHost 192.168.0.200:80>
> ServerName www.Dom2.com
> DocumentRoot /var/local/www/data/Dom2
> ErrorLog /var/log/Dom2-error_log
> CustomLog /var/log/Dom2-access_log common
> </VirtualHost>
>
>
> Thank you in advance for any help!
>
> Mark
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Hosting Woes....... (forgot the specifics)

Posted by "M.D. DeWar" <ma...@s-wit.net>.
I have or had this issue.
I am not sure if its related or if I just  fubared my httpd.conf
I first started out with just one website on the box.
Then decided I would use it to back up some other sites.
When I added the virtual sites I lost my main site. Access the url of the
main brought up the pages of the first virtual site.

I had to go add the main site to the <VirtualHost> section.
Now they all seem to come up properly. I dont' know why. Guess I expected it
to act like my windows based o'reilly webserver. Or I fubared the setup.
Apache 2.0.47 on Freebsd 4.8 if that is important also
Mark


> Apache 1.3.28 on FreeBSD 4.8.
>
> Mark
> ----- Original Message -----
> From: "Mandrich" <ma...@4fts.com>
> To: <us...@httpd.apache.org>
> Sent: Friday, September 19, 2003 10:47 AM
> Subject: [users@httpd] Virtual Hosting Woes.......
>
>
> > Hi All,
> >
> > I'm having some difficulty getting my virtual hosting to work. Apache
> starts
> > fine and shows no errors. All domains have entries on my local name
server
> > that point to the one IP for the machine. Any of the domains I've
created
> > route to the box, but I only get the default directory and not the
> assigned
> > directory regardless of which site I request. Nothing shows up in the
logs
> > specified under the virtual hosting directive, and the http access log
> just
> > shows a regular served request for the domain I requested. I've done my
> best
> > to read through the apache online docs, but it rally seems pretty
straight
> > forward. I must be overlooking something really simple. Any thoughts or
> > suggestions? Are there directives that I should comment out form the
> 'main'
> > server section? Below is my Virtual hosting section:
> >
> > NameVirtualHost 192.168.0.200:80
> >
> > #
> > # VirtualHost example:
> > # Almost any Apache directive may go into a VirtualHost container.
> > # The first VirtualHost section is used for requests without a known
> > # server name.
> > #
> > #<VirtualHost *:80>
> > #    ServerAdmin webmaster@dummy-host.example.com
> > #    DocumentRoot /www/docs/dummy-host.example.com
> > #    ServerName dummy-host.example.com
> > #    ErrorLog logs/dummy-host.example.com-error_log
> > #    CustomLog logs/dummy-host.example.com-access_log common
> > #</VirtualHost>
> >
> > <VirtualHost 192.168.0.200:80>
> > ServerName www.Dom1.com
> > DocumentRoot /var/local/www/data/Dom1
> > ErrorLog /var/log/Dom1-error_log
> > CustomLog /var/log/Dom1-access_log common
> > </VirtualHost>
> >
> > <VirtualHost 192.168.0.200:80>
> > ServerName www.Dom2.com
> > DocumentRoot /var/local/www/data/Dom2
> > ErrorLog /var/log/Dom2-error_log
> > CustomLog /var/log/Dom2-access_log common
> > </VirtualHost>
> >
> >
> > Thank you in advance for any help!
> >
> > Mark
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org