httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben-Nes Michael" <>
Subject [users@httpd] rewrite url on the fly
Date Thu, 15 Jul 2004 13:15:22 GMT
Hi All

here is my problem:

I have a virtual host for
All the data is under /var/httpd/ directory

I supply SSL security for this site under diffrent virtual server ( ack

the problem is that give solution to many web sites so a typical directory

Alias /customer-site /var/httpd/

<Directory "/var/httpd/">
  Options Includes FollowSymLinks
  AllowOverride None
  order allow,deny
  Allow from all

now when i write: 
its lead to the same directory as

The problem start when the html code has <image src="/images/an-image.jpg" />
this is will result as a broken image under the secure directory as images directory will
be under /customer-site and not under /

is there a way to fix such problem ? replacing "/" with "/customer-site" on the fly ?

I played alittle with mod_rewrite but im not sure its capable of doing this

Thanks fin advance

Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
Fax: 972-4-6990098

View raw message