[Dancer-users] Dancer, Plack, plain old CGI and mod_rewrite

icovnik icovnik at gmail.com
Thu Mar 11 15:57:54 CET 2010

On Thu, Mar 11, 2010 at 12:41 PM, Alexis Sukrieh <sukria at sukria.net> wrote:
> Le jeudi 11 mars 2010 à 12:05 +0100, icovnik a écrit :
>> I just wonder whether is it possible to get rid of that "dispatch.cgi"
>> part in URI? To make the same functionality but with URIs like this:
>> http://server/App1/public/foo/bar
>> e.g. to completely hide the script name from outside.
> If you followed my example, it is the case, I access my app the
> following:
>    http://server/App1/foo/bar
> The rewrite rule does hide the dispatch.cgi part, it's done behind the
> scene.

Well... Yes and no :)

If those Rewrite(Engine|Cond|Rule) settings are written in httpd.conf
then everything works as you wrote - and that is EXACTLY what I
wanted. But if the settings are in .htaccess file in /App1 then it
behaves a bit differently, there should be the dispatch.cgi in URI as
I wrote (becouse I was setting it in .htaccess as other settings).
Just moving it to httpd.conf solved the problem.

(So there is only a note for me to look at the differencies in apache docs)

So again thank you for your help.


More information about the Dancer-users mailing list