Here are my rewrite rules:
ProxyPreserveHost On
RewriteEngine ON
RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$
http://localhost:9999/seaside/mmiki/$1
[proxy,last]
I think this is the same problem that I have when seaside times
out. I
the path duplicated like: /seaside/miki/seaside/mmiki
Obviously, I've done something wrong with the image (unless you see
something wrong in the rewrite rules)
I think the rewrite rules are ok. I'm seeing this in the apache
access log:
"GET /seaside/files/SULibrary/prototype.js HTTP/1.1" 404 82
I don't know why SULibrary is looking externally for the files. I
didn't
tell it to do so. Is this the default?
Ok, so I don't get it. Why would apache look for these files? These
javascripts are in the image. In fact, all I have is css in my own
library. Is this something about the back and forth of rewrite rules
that I don't understand?
Someone know?
Yes it looks to me as if the files do not get rewritten correctly.
Try adding the following line to your rewrite rules:
RewriteRule ^/seaside/files/(.*)$
http://localhost:9999/seaside/
files/$1 [proxy,last]
Make sure it is the first rule to be applied, so that it looks
somehow like:
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/seaside/files/(.*)$
http://localhost:9999/seaside/
files/$1 [proxy,last]
RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$
http://localhost:9999/seaside/mmiki/$1
[proxy,last]
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch