httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary W. Smith" <g...@primeexalia.com>
Subject [users@httpd] rewrite and virtualdocumentroot question
Date Thu, 20 Apr 2006 18:40:35 GMT
We are running the following in the httpd.conf file.  This works well
for our virtual domain hosting.  

VirtualDocumentRoot /exports/home/%-2.0.%-1/virtualdomains/%0
VirtualScriptAlias /exports/home/%-2.0.%-1/virtualdomains/%0/cgi-bin

For the users we have a prefix as part of their username.  For example,
the domain domain.tld might have the following prefix domain_ so the
user accounts would look like domain_bob, domain_john, etc.

We have a need to strip the this prefix off for a particular domain that
we are hosting and expose their home directory.  The users home
directories are always under a partitular path:

/exports/home/domain.tld/users/prefix_username

What we would like to do is have all traffic for /bob to go to the
folder /exports/home/domain.tld/users/domain_bob.  The second part of
this is that we only want this to happen for domain.tld, not domain2.tld
or domain3.tld.

Is this possible?  If so, how would I approach this?  

I figure the first part of the equation is getting /domain_bob to map to
/exports/home/domain.tld/users/domain_bob but I don't know how to do
this when we are running VirtualDocumentRoot.

It should also be noted that there is no content on this particular
virtual host.  It was specifically create for the purposes of putting
home directories on the network.

Any help would be greatly appreciated.

Gary Smith

Mime
View raw message