httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Esterle <eeste...@nc.rr.com>
Subject [users@httpd] Re: config question
Date Tue, 05 Apr 2005 00:58:00 GMT
Got it working.  The key was this directory: "albums".  I'm sure other
variations may be more efficient.  This is what I came up with:

   RewriteEngine On
   RewriteLogLevel 1
   RewriteRule ^/albums/(.*)  - [L]
   RewriteRule ^/images/       - [L]
   RewriteRule ^/local/           - [L]
   RewriteRule ^/icons/          - [L]
   RewriteRule ^/~(.*)             - [L]
   RewriteRule ^/cgi-bin/        - [L]

   RewriteRule ^/gallery/(.*) /var/www/localhost/htdocs/gallery/$1 [L]

   RewriteRule ^/(.*) \
     
http://localhost:8080/VirtualHostBase/http/my-site.org:80/gentoo/VirtualHostRoot/$1
[L,P]


--Eric


Eric Esterle wrote:

>I am trying to incorporate additional sites into an existing Apache2
>server that already has a Plone catchall rewrite rule.  Specifically, I
>am trying to get Gallery working.  I can get one or the other working
>fine, and I can get both working by way of a rewrite rule for Gallery
>but it breaks the image path and no images show up.  I have tried the
>following but neither is allowing both sites to function correctly
>simultaneously:
>
>RewriteCond %{REQUEST_URL} ^$ [OR]
>RewriteCond %{REQUEST_FILENAME} !-d
>RewriteCond %{REQUEST_FILENAME} !-f
>RewriteCond %{REQUEST_FILENAME}/index.html !-f
>RewriteCond %{REQUEST_FILENAME}/index.php !-f
>RewriteRule ^/(.*) \
>
>http://localhost:8080/VirtualHostBase/http/my-site.org:80/gentoo/VirtualHostRoot/$1
>[L,P]
>
>
>The following will show both sites but the image path in Gallery are
>broken:
>==============================
>RewriteRule ^/gallery/ - [L]
>RewriteRule ^/local/ - [L]
>RewriteRule ^/icons/ - [L]
>RewriteRule ^/~(.*) - [L]
>RewriteRule ^/cgi-bin/ - [L]
>RewriteRule ^/(.*) \
>
>http://localhost:8080/VirtualHostBase/http/my-site.org:80/gentoo/VirtualHostRoot/$1
>[L,P]
>
>If you have been through this already I could use some help.  Thanks,
>
>Eric
>
>  
>


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


Mime
View raw message