httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evje <sel.ausl...@shawcable.com>
Subject Re: [users@httpd] Virtual Hosts
Date Thu, 14 Nov 2002 12:54:13 GMT
Thanks for the help Owen and Christopher. Your patience and assistance
is appreciated!!! I'm sure I will have further questions as I go along.

Boyle Owen wrote:
> 
> This looks very good - as Christopher points out "ServerAlias" is
> redundant. Usually, you use this directive if you have two domain names
> pointing to the same site, e.g. two variations of spelling, like:
> 
> ServerName www.theatre.com
> ServerAlias www.theater.com
> 
> In the directory container, you have "AllowOverride" - I presume this
> means you have a ".htaccess" file in the directory and that you want to
> allow this file to define the password access mechanism (AuthConfig),
> directory options (Options) and document types (FileInfo)... If so, you
> know more about apache than you're letting on :-)
> 
> As a final note, personally, I think it's a great idea to use virtual
> host containers even if you have only one site (as you have done). It
> makes things very clear and means that the httpd.conf is immediately
> scaleable if you want to add another site. I take it you do understand
> that you can add additional sites to this config by creating new VH
> containers with different docroots... The simplest are name-based where
> you just put "NameVirtualHost *" before and outside any VH containers
> and then make any number of VHs with different ServerNames. Apache will
> then select the appropriate site using the server name in the user's
> request.
> 
> Good Luck!
> 
> OWen Boyle

> >Hello;
> >   New to Apache and would like to know if the following example is the
> >correct way to configure Virtual Host and Directory. It works, but is
> >there a better way to do it?
> >
> ><VirtualHost *>
> >     ServerAdmin admin@xyz.com
> >     DocumentRoot "C:/Apache2/htdocs/mydirectory"
> >     ServerName www.xyz.com
> >     ServerAlias www.xyz.com
> >     ErrorLog  logs/xyz.com-error_log
> >     CustomLog logs/xyz.com-access_log common
> >
> >     <Directory "C:/Apache2/htdocs/mydirectory">
> >     Options Indexes
> >     AllowOverride AuthConfig Options Fileinfo
> >     Order Allow,Deny
> >     Allow from all
> >     </Directory>
> ></VirtualHost>

---------------------------------------------------------------------
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