[cgiapp] AutoRunmode vs Apache issue

Thomas Krichel krichel at openlib.org
Thu May 25 08:25:19 EDT 2017


  Simon Cruickshank writes

> I can configure apache so that
> http://localhost/cgi-bin/WebApp.pl/thisrunmode works.
> 
> But I want to simplify the url to http://localhost/thisrunmode but
> when I configure the DirectoryIndex of the home directory to be
> /cgi-bin/WebApp.pl it breaks AutoRunmode so the shortened URLs no
> longer work.
> 
> Could someone point me in the right direction as to whether it is
> possible to achieve this with the right Apache configuration.

  Could this be a job for the rewrite module?

RewriteEngine on
RewriteRule ^/thisrunmode(.*)$ /cgi-bin/WebApp.pl$1 [L]

-- 

  Cheers,

  Thomas Krichel                  http://openlib.org/home/krichel
                                              skype:thomaskrichel


More information about the cgiapp mailing list