Skip to content

Commit

Permalink
add provision for requests ending in .php
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasberens authored and FFHener committed Aug 9, 2023
1 parent 8cc5f48 commit 79aa1e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apache/util.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
RewriteEngine on
RewriteCond /var/www/util.berlin.freifunk.net/www/%{REQUEST_URI}.php -f
RewriteRule ^(.*)$ "fcgi://127.0.0.1:9000/var/www/util.berlin.freifunk.net/www/$1.php" [L,P]
# we should still allow normal php files to be called and accessed
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>


AddType application/json .json

Expand Down

0 comments on commit 79aa1e0

Please sign in to comment.