Date: Sun, 5 Dec 1999 23:53:52 -0600 (CST) From: kward@panther.net (Keith Ward) To: aaron@sonntag.org (Aaron Sonntag) Cc: freebsd-isp@FreeBSD.ORG Subject: Re: apache vhost question Message-ID: <m11ur5t-0002hdC@rowdy.panther.net> In-Reply-To: <NDBBIMDNELEBLKLCAJPKAEIBCNAA.aaron@sonntag.org> from "Aaron Sonntag" at Dec 5, 99 06:18:25 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m11ur5t-0002hdC>