Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 1999 15:37:54 -0600
From:      "Aaron Sonntag" <aaron@sonntag.org>
To:        "Keith Ward" <kward@panther.net>, "Aaron Sonntag" <aaron@sonntag.org>
Cc:        <freebsd-isp@FreeBSD.ORG>
Subject:   RE: apache vhost question
Message-ID:  <EFEFLFENNNOBGMNPFNNFAEKMCIAA.aaron@sonntag.org>
In-Reply-To: <m11ur5t-0002hdC@rowdy.panther.net>

next in thread | previous in thread | raw e-mail | index | archive | help
thank you keith,
based upon what you said and the apache documentation the following vhost
entry worked for me and should work for anyone else too ;-)
note the ServerAlias line... that was the key.  Also note the wildcard for
the ServerName was not a problem and allows Apache to handle
anything.terraneclipse.net
thanks again for the help everyone!

Aaron Sonntag

<VirtualHost 216.140.186.114>
        ServerName *.terraneclipse.net
        ServerAlias www.terraneclipse.com *.terraneclipse.net
        ServerAdmin hostmaster@sonntag.org
        DocumentRoot /home/tec_www/public_html
        CustomLog /home/tec_www/logs/access_log common
        ErrorLog /home/tec_www/logs/error_log
        ScriptLog /home/tec_www/logs/script_log
        TransferLog /home/tec_www/logs/transfer_log
</VirtualHost>

-----Original Message-----
From: owner-freebsd-isp@FreeBSD.ORG
[mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Keith Ward
Sent: Sunday, December 05, 1999 11:54 PM
To: Aaron Sonntag
Cc: freebsd-isp@FreeBSD.ORG
Subject: Re: apache vhost question



You need a FQDN for the ServerName on the second virtual host.  As
far as I know, the wildcard can only be used for the ServerAlias
directive.

i.e.:
<VirtualHost 216.140.186.114>
	ServerName www.terraneclipse.net
	ServerAlias *.terraneclipse.net
	...
</VirtualHost>

Keith

According to the writings of Aaron Sonntag
>
> When I goto the following VHOST I have no problems
> www.terraneclipse.com
> <VirtualHost 216.140.186.114>
>         	ServerName www.terraneclipse.com
>         	ServerAdmin hostmaster@sonntag.org
>         	DocumentRoot /home/tec_www/public_html
>         	CustomLog /home/tec_www/logs/access_log common
>         	ErrorLog /home/tec_www/logs/error_log
>         	ScriptLog /home/tec_www/logs/script_log
>         	TransferLog /home/tec_www/logs/transfer_log
>         	ScriptAlias /cgi-bin/ /home/tec_www/cgi-bin/
> </VirtualHost>
> but when I goto another VHOST that I want to use the same directories as
the
> .com version I get the error below
> www.terraneclipse.net
> <VirtualHost 216.140.186.114>
>        	 ServerName *.terraneclipse.net
>         	ServerAdmin hostmaster@sonntag.org
>        	 DocumentRoot /home/tec_www/public_html
>         	CustomLog /home/tec_www/logs/access_log common
>         	ErrorLog /home/tec_www/logs/error_log
>        	 ScriptLog /home/tec_www/logs/script_log
>         	TransferLog /home/tec_www/logs/transfer_log
>         	ScriptAlias /cgi-bin/ /home/tec_www/cgi-bin/
> </VirtualHost>
> [error]
> Forbidden
> You don't have permission to access / on this server.
>
> Apache/1.3.9 Server at www.sonntag.org Port 80
> [error]
>
> any ideas?
> Thank you,
> Aaron
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>


--

      Keith Ward N5OOD     kward@Panther.net      ...!rwsys!rowdy!kward

     =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         I don't suffer from insanity, I enjoy every minute of it.
     =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EFEFLFENNNOBGMNPFNNFAEKMCIAA.aaron>