LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] Apache - Operation with vhost alias

[CLUG] Apache - Operation with vhost alias

AJ McKee aj.mckee at druid-dns.com
Tue Mar 1 17:52:46 GMT 2005


Howdy All,

I have a wee question in relation to mod_vhost_alias in apache.

Currently I normally lay out my webservers filesystem as follows

All websites are kept here on LVM
/www/sites

So a site that is called "adomianname.com" would have the following file  
and dir structure

/www/sites/a/adomainname.com -- FTP home
/www/sites/a/adomainname.com/html -- DocumentRoot
/www/sites/a/admomainname.com/cgi-bin -- Script Alias

A site that had a b as the start of its domain name would look like
/www/sites/b/digdomains.com/html

Additionall log files are kept in more or less the same way.
/www/logs/a/adomainname.com/access.log
/www/logs/b/bigdomains.com/access.log

/www/sites us broken down in alphabeth and number 0-9 (/www/sites/a  
/www/sites/b /www/sites/2 etc)
So you follow how I am doing things.

I would like to use mod_vhost_alias to do the same stuff, however there  
are a number of things I have to consider.

Sites must respond to www.domain.com and domain.com (A records point at  
the web server)

Reading the docs on mod_vhost_alias its not obvious to me; Whould it be  
something like;

  VirtualDocumentRoot /usr/local/apache/vhosts/%1/%0/html

It also raises the question of how am I gonna handle my log files,  
currently I keep a separate log for each site. But I gateher if I use  
vhost_alias I may not be able to do that.

Any comments or advice welcomed.

Cheers
AJ




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell