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 17:10:37 GMT
----- Original Message ----- 
From: "Gusti Benawi" <Benawi@gmx.de>
To: <users@httpd.apache.org>
Sent: Friday, October 03, 2003 12:54 PM
Subject: Re: [users@httpd] VirtualHost help


> Hi,
> Thanx for replying
>
> On Fri, Oct 03, 2003 at 04:38:55PM +0200, Jonas Eckerman wrote:
> > > i restarted apache, apache worked ut when i type a.mydomain.com or
> > > b.mydomain.com
> > Of course you also updated you DNS pointers so that a.mydomain.com and
> b.mydomain.com pointed the the web server?
> How do i do that?

Ahh, this helps.  :)  Is mydomain.com a registered name on the internet and
you have gone to the registrar's website and logged in and specified primary
and secondary DNS servers?

If yes, then you have to have A or CNAME records added such that the new
host names a.mydomain.com, b.mydomain.com, c.mydomain.com, etc., are all
going to resolve to the IP address of your webserver.

If no, (i.e. mydomain.com exists only in you /etc/hosts file or
C:\WINNT\System32\drivers\etc\hosts), then you can just add those names to
the hosts file of the client machine (where you surf with the browser).  You
could do it either way, (i.e. to get your config working while you wait for
the DNS changes to take effect, or if you only want to do in-house testing),
but it will only work on that computer, not for other computers.

Example hosts file:

127.0.0.1    localhost
192.168.1.100    mydomain.com
192.168.1.100    a.mydomain.com
192.168.1.100    b.mydomain.com
1.2.3.4                c.mydomain.com

Leif

> > > it won't work
> > In what way doesn't it work?
> > The browser can't resolve the domain name?
> in that way, but it worked with mydomain.com
>
> > The computer explodes?
> =)
>
> On Fri, Oct 03, 2003 at 09:18:53AM -0400, Leif W wrote:
> > Is there anything in the
> > access log?  In the error log?
> no log, because the browser cn't resolve the domain name
>
> > 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
> i use the default LogFormat
>
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
>
> > Alternately, you could put each VirtualHost logfile into a
> > separate log (if you haven't got thousands).
> sure, you are quite right
>
> yours
>
> -- 
> --
> He abused me, he beated me,
> He defeated me, he robbed me,
> In those who harbour such thoughts
> Hatred never ceases.
>
> 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