RE: [users@httpd] rewrite and virtualdocumentroot question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your requirements are spinning around in my head and I am a little confused :-) but if that's what you need, your rules seem good to me. 

You can trace every step of the rewriting process in the rewrite log, so you should easily be able to adjust your rules according to what you observe in the logs.

-ascs

-----Original Message-----
From: Gary W. Smith [mailto:gary@xxxxxxxxxxxxxxx] 
Sent: Sunday, April 23, 2006 6:31 AM
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] rewrite and virtualdocumentroot question

This is what I ended up with and it seems to be working great.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^users.domain.tld$ [NC]
RewriteCond %{REQUEST_URI} !^/horde*$ [NC]
RewriteCond %{REQUEST_URI} !^/mail*$ [NC]
RewriteRule ^/([^\/]+)(.*)$ /exports/home/domain.tld/users/prefix_$1$2 [L]

All of the other domains seem to be unaffected by this and work as expected.  Does this look correct?

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux