Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 78187 invoked from network); 20 Apr 2006 18:41:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 18:41:12 -0000 Received: (qmail 72391 invoked by uid 500); 20 Apr 2006 18:41:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72378 invoked by uid 500); 20 Apr 2006 18:41:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 72367 invoked by uid 99); 20 Apr 2006 18:41:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 11:41:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.209.83.2] (HELO pxtoakiis01.pxt.primeexalia.com) (209.209.83.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 11:41:01 -0700 Received: from pxtbenexd01.pxt.primeexalia.com ([10.0.16.4]) by pxtoakiis01.pxt.primeexalia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Apr 2006 11:40:37 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C664A9.E970528F" Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 20 Apr 2006 11:40:35 -0700 Message-ID: <57F9959B46E0FA4D8BA88AEDFBE582901675A9@pxtbenexd01.pxt.primeexalia.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rewrite and virtualdocumentroot question Thread-Index: AcZkqel5AGbTWz8SQzqF5TXHANe1Kg== From: "Gary W. Smith" To: X-OriginalArrivalTime: 20 Apr 2006 18:40:37.0477 (UTC) FILETIME=[EA98C950:01C664A9] X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] rewrite and virtualdocumentroot question X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C664A9.E970528F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We are running the following in the httpd.conf file. This works well for our virtual domain hosting. =20 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? =20 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 ------_=_NextPart_001_01C664A9.E970528F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable rewrite and virtualdocumentroot question

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

------_=_NextPart_001_01C664A9.E970528F--