Let apache run perlscripts that don't have an extension

Posted by tiMbeRdroP on Pro Webmasters See other posts from Pro Webmasters or by tiMbeRdroP
Published on 2012-07-31T23:07:20Z Indexed on 2012/09/01 3:49 UTC
Read the original article Hit count: 192

Filed under:

I'd like to use perlscripts without their extension. f.e. "index" instead of "index.pl".

Changing the DefaultType-directive from text/plain to application/x-perl didn't do the trick. Instead of running the script the server offered to download its source.

I'm not exactly sure if changing this directive is the right approach. Telling apache to read the shebang-line when there is no extension sounds much better to me.

I hope someone with more experience on this topic can help me out.

© Pro Webmasters or respective owner

Related posts about apache2