Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

xampp, a.jpg.xx, as jpg

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 29 Aug 2016
Posts: 56

PostPosted: Mon 18 Feb '19 7:44    Post subject: Reply with quote


There is a problem with xampp, visit a.jpg.xx, as jpg is executed. As picture.
Back to top

Joined: 16 Oct 2007
Posts: 2192
Location: Sun Diego, USA

PostPosted: Mon 18 Feb '19 22:19    Post subject: Reply with quote

Not a problem. It is as documented. see

That said, in httpd.conf (bottom is fine) add
<Files ~ "\.xx$">
  Require all denied

That will make all files inaccessible with a .xx at the end, if that's what your looking for.
Back to top

Joined: 29 Aug 2016
Posts: 56

PostPosted: Tue 19 Feb '19 3:22    Post subject: Reply with quote

This does not solve the problem at all. The user may upload a.jpg.ax next time.
A.jpg.as, a.jpg.abc, a.jpg.xat Unlimited possibilities. What about the configuration?
Back to top

Joined: 27 Jun 2016
Posts: 84
Location: Schömberg, Baden-Württemberg, Germany

PostPosted: Fri 22 Feb '19 9:22    Post subject: Reply with quote

Have you tried to disable the functionality for this multi-lanuage-thing. Maybe this helps (haven't tested it myself):
<IfModule mod_negotiation.c>
    Options -MultiViews

Another idea might me to redirect everything that does not exist physically on the filesystem to an error-page:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ / [R=302,L]
Back to top

Joined: 29 Aug 2016
Posts: 56

PostPosted: Fri 22 Feb '19 10:40    Post subject: Reply with quote

The file exists, and file access with multiple suffixes will encounter similar problems.
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1