Re: Kwiki::Modperl redirects
[email protected] ("Christopher L. Everett") Thu, 30 Jun 2005 13:01:09 -0500
| Newsgroups | perl.kwiki |
|---|---|
| Message-ID | <[email protected]> |
Liu Kang-min wrote: > > On Jun 28, 2005, at 4:56 AM, Christopher L. Everett wrote: > >> l is: >> >> site_title: MedBanner.com Tech Wiki >> main_page: HomePage >> logo_image: palm90.png >> script_name: >> database_directory: database > > Hello, ceverett > > Just guess if you're using Safari, because that's the issue of > redirect was there > in Kwiki::ModPerl 0.04 or earlier versions only when people are using > Safari, and when > the redirection URL looks like a relative path.. > > And, you don't have to set script_name to nothing in the config.yaml. > Is there a special reason for that ? Because that might be the reason > causing Kwiki > to generate relative-path redirection URL. > > In present version of Kwiki::ModPerl, setting script_name to nothing > is no longer required. > Maybe you should remove that line in your config.yaml and see if > things work fine. I just commented out script name and the result is the same. It occurs to me that the issue might be my proxy setup: apache+mod_ssl+mod_gzip front end proxying back to ModPerl::Kwiki, with the initial request going to a mod_ssl enabled virtual, then internally redirected to a second virtual host with mod_gzip enabled (mod_ssl disabled), where basic authentication/authorization happens, requests for static files get handled immediately right there and everything else gets sent to the Perl server. <VirtualHost 207.177.51.231:443> ServerName wiki.medbanner.com DocumentRoot "/var/httpd/wiki" ServerAdmin [email protected] ProxyPass / http://localhost:1081/ ProxyPassReverse / http://localhost:1081/ ProxyReceiveBufferSize 65535 Include /etc/httpd/ssl/engine.conf # common SSL setup SSLCertificateFile ... SSLCertificateKeyFile ... </VirtualHost> <VirtualHost 127.0.0.1:1081> ServerAdmin [email protected] ServerName gzip.wiki.medbanner.com DocumentRoot "/var/httpd/wiki" SSLEngine Off Include /etc/httpd/gzip.conf # common mod_gzip setup RewriteEngine on RewriteRule "(config\.yaml|plugins|passwords|registry\.dd)" \ - [L] RewriteRule ^(admin/|config/|plugin/|template/|theme/|icons/) \ - [L] RewriteRule (\.css|\.jpg|\.gif|\.png|\.js)$ \ - [L] RewriteRule ^/(.*) \ http://127.0.0.1:8095/$1 [P] ProxyPassReverse / http://127.0.0.1:8095/ ProxyReceiveBufferSize 65535 <FilesMatch "(config\.yaml|plugins|passwords|registry\.dd)" > Deny from all </FilesMatch> <FilesMatch (config/|plugin/|template/|theme/) > Deny from all </FilesMatch> ErrorLog /var/log/httpd/wiki.medbanner.com/error.log CustomLog /var/log/httpd/wiki.medbanner.com/access.log combined </VirtualHost> This should all be OK, right? -- Christopher L. Everett Chief Technology Officer www.medbanner.com MedBanner, Inc. www.physemp.com