httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mandrich" <mandr...@4fts.com>
Subject Re: [users@httpd] Virtual Hosting Woes.......
Date Fri, 19 Sep 2003 20:24:00 GMT
Hi Trev,

Thanks for the reply! On the FreeBSD systems the vhosts statements are
incorporated directly into the httpd.conf. In theory (according to the
apache docs)there's not much to do but to uncomment and add the correct
values for the NameVirtualHost and theVirtualHost directives. I'm going to
install Apache on a second box and see if the problem shows up there.

Mark
----- Original Message ----- 
From: "Trev Peterson" <trev_pub@advanced-reality.com>
To: <users@httpd.apache.org>
Sent: Friday, September 19, 2003 1:27 PM
Subject: Re: [users@httpd] Virtual Hosting Woes.......


> Mark,
>
> The vhosts config looks good.  Are the vhost statements in a separate
> file from the main config (as is the default on Mandrake Linux).
>
> On my system in /etc/httpd/conf/httpd.conf
>
> there is the following line:
> Include conf/vhosts/Vhosts.conf
>
> You may want to make sure the vhosts file is being read.
>
> Hope this helps
>
> Trev
>
> On Fri, 2003-09-19 at 17:47, Mandrich wrote:
> > 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


Mime
View raw message