httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <warp-...@usa.net>
Subject Re: [users@httpd] VirtualHost help
Date Fri, 03 Oct 2003 13:18:53 GMT
Hello,

Only thing I can see is to change all the VirtualHost to *:80 to match the
NameVirtualHost directive.  Other than that, it looks ok.  In what way isn't
it working?  Can you be more specific?  Is a different page showing up than
what you expected?  Is no page showing up at all?  Is there anything in the
access log?  In the error log?

I notice you have all the logfiles for each VirtualHost pointing to the same
file, and using the combined log format.  Are you making sure to include the
ServerName in the log with %v or %V ( see
http://httpd.apache.org/docs-2.0/mod/mod_log_config.html ), otherwise, you
won't know which site traffic is coming from, and it could also make it hard
to troubleshoot.  Alternately, you could put each VirtualHost logfile into a
separate log (if you haven't got thousands).  Usually the only reason to
combine them is if you have too many VirtualHosts (several thousand), and
the OS can't open all those files at once (or eg. while doing logrotation).

Leif

----- Original Message ----- 
From: "Gusti Benawi" <Benawi@gmx.de>
To: <users@httpd.apache.org>
Sent: Friday, October 03, 2003 4:50 AM
Subject: [users@httpd] VirtualHost help


> Hi Folks,
>
> Suppose i have static ip-address, mydomain.com
> and i would like to make many subdomains a.mydomain.com , b.mydomain.com
> and  each a.mydomain.com or b.mydomain.com will be taken to directory a or
b
> inside my htdocs.
>
> can it be done with VirtualHost?
> i have done these my httpd.conf
>
> NameVirtualHost *:80
>
> <VirtualHost _default_:*>
>     DocumentRoot /usr/web/www/htdocs
>     ErrorLog /usr/web/log/virtual-server-error-log
>     CustomLog /usr/web/log/virtual-server-access-log combined
> </VirtualHost>
>
> <VirtualHost *>
>     ServerAdmin me@mydomain.com
>     DocumentRoot /usr/web/www/htdocs/a
>     ServerName a.mydomain.com
>     ErrorLog /usr/web/log/virtual-server-error-log
>     CustomLog /usr/web/log/virtual-server-access-log combined
> </VirtualHost>
>
> <VirtualHost *>
>     ServerAdmin me@mydomain.com
>     DocumentRoot /usr/web/www/htdocs/b
>     ServerName b.mydomain.com
>     ErrorLog /usr/web/log/virtual-server-error-log
>     CustomLog /usr/web/log/virtual-server-access-log combined
> </VirtualHost>
>
>
> i restarted apache, apache worked
>  but when i type a.mydomain.com or b.mydomain.com
>
> it won't work
>
> -- 
> NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse für Mail, Message, More! +++
>
>
>
> -- 
> NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse für Mail, Message, More! +++
>
>
> ---------------------------------------------------------------------
> 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