httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60976] New: AddHandler cgi-script .pl - something.pl.js files are executed
Date Wed, 12 Apr 2017 13:53:41 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60976

            Bug ID: 60976
           Summary: AddHandler cgi-script .pl - something.pl.js files are
                    executed
           Product: Apache httpd-2
           Version: 2.4.23
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mime
          Assignee: bugs@httpd.apache.org
          Reporter: apache_org@dlk.pl
  Target Milestone: ---

I just uploaded a test site to local apache and got "500 Internal Server Error"
while loading static file "http://localhost/js/bootstrap-datepicker.pl.js". (pl
as a language code)

The file was wrongly parsed/executed by the server as a perl script.

The only way to fix this was to comment:
# AddHandler cgi-script .cgi .pl

or remove .pl as it was wrongly matched with ".pl.js" file

Using Apache (lampp) on Arch

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message