Re: AutoRunmode vs Apache issue
Thomas Krichel <[email protected]> Thu, 25 May 2017 12:25:19 +0000
| Newsgroups | gmane.comp.lang.perl.modules.cgi-appplication |
|---|---|
| Message-ID | <[email protected]> |
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
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################