You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eric Esterle <ee...@nc.rr.com> on 2005/04/05 02:58:00 UTC
[users@httpd] Re: config question
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