httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SW"...@creationfactor.net>
Subject Re: [users@httpd] Sharing resources across virtual hosts
Date Fri, 09 Nov 2007 17:04:18 GMT

> Have a look at rewriterules.
> Probably you could have both virtual hosts share the same docroot, but
> rewrite requests for the css stylesheets to the branded version on one
> of your vhosts.

To further expand on the scenario, there may be several branded webs, in addition to each
one having it's own stylesheet it will also have it's own index.php and contact.php pages
but will share faqs.php and gallery.php with the main site. So each branded needs it's own
document root and vhost but pull in faqs.php and gallery.php and apply it's style sheet to
them.

Can rewrite rules be used, like aliases, to map to resources that are not within the webroot?
I don't see any examples of this on this page http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html.

Thanks
Spencer
Mime
View raw message