Hello,
I am currently using CA::Dispatch to shell out my webpages under
mod_perl. My apache conf looks like this:
<VirtualHost *:80>
... snip ...
# So that all request to petnuch.com get sent to the dispatcher
RewriteEngine On
ReWriteRule ^/$ /app/main/main [R]
<Location />
# If an actual file or directory is requested, serve directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</Location>
<Location /app >
SetHandler perl-script
PerlHandler CGI::Application::Dispatch
PerlSetVar CGIAPP_DISPATCH_PREFIX MPWebsite
PerlSetVar CGIAPP_DISPATCH_DEFAULT /main
</Location>
</VirtualHost>
So urls for my website look like this: http://www.petnuch.com/app/
module/runmode. However, I would like them do just look like this:
http://www.petnuch.com/module/runmode. I can do this by putting the
Dispatch stuff under the '/' location, however, them I have the
problem of my css files and images (which are actually under '/') not
being served. I figure there is some mod_rewrite magick that does
this but I am not really versed with it.
Anyone have any suggestions?
smime.p7s
Description: S/MIME cryptographic signature
