This is a discussion on Rewrite to a parent directory outside www-root within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, My virtual hosting setup has the following directory structure: /var/www/site-1 /var/www/site-2 /var/www/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
My virtual hosting setup has the following directory structure: /var/www/site-1 /var/www/site-2 /var/www/site-n The apache-root of each website is /var/www/site-n/www. Webalizer writes its output to /var/www/site-n/stats. Now I would like the stats of each website to be available through /var/www/site-n/stats. Currently, I am using symlinks: stats => ../stats. This works fine, but users keep accidentily remove this symlink again and again. So now I would like to use mod_rewrite to accomplish te same effect, but without the need for symlinks. The rewrite-rule should do this: /var/www/site-n/www/stats => /var/www/site-n/stats Thanks for any help, Jesper |
|
|||
|
Hi Jesper,
This is probably not an area where mod_rewrite should be applied. Use Alias instead in each of yuor vhosts. If repetition becomes an issue, consider using mod_macro. Reply if you need specific help with Alias, noodl http://httpd.apache.org/docs/2.0/mod...ias.html#alias http://www.cri.ensmp.fr/~coelho/mod_macro/ |
| Thread Tools | |
| Display Modes | |
|
|