Re: url rewrite

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

 



The way I have accomplished this in the past is to have a different file with "global" redirects and include it in each virtualHost config.  It means you need to have a line like 'include "conf/global-rewrites.conf"' in each vhost, but you don't need to duplicate the rewrite rules proper

A
--
Aaron Macks
Sr. Unix Systems Engineer

Harvard Business Publishing
300 North Beacon St.    |   Watertown, MA 02472
(617) 783-7461                |   Fax: (617) 783-7467
www.harvardbusiness.org |   Cell:(978) 317-3614

On Jun 1, 2011, at 4:33 PM, Friedrich Locke wrote:

> Hi list users,
> 
> this is my first post on this mailing list. My doubt is the following:
> 
> Is it possible to redirect a document root based on the site address
> like in a template manner wihtout having to configure for each virtual
> system ?
> 
> I mean this:
> 
> Access to http://x.y.z/abc.html should be mapped to documentroot
> /var/web/x.y.z/abc.html ? but without having to set each mapping?
> 
> Thanks in advance.
> 
> Fried
> 
> ---------------------------------------------------------------------
> 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
> 


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