Hardening Apache #41

This commit is contained in:
Jeroen Geusebroek
2021-11-12 13:51:27 +01:00
parent 65239c7533
commit 5ea2fbc745
2 changed files with 9 additions and 2 deletions

View File

@@ -1,13 +1,19 @@
ServerTokens Prod
Header set X-Frame-Options: "sameorigin"
<VirtualHost *:80>
ServerAdmin _
DocumentRoot /var/www/spotweb
RedirectMatch 404 /\.git
<Directory /var/www/spotweb/>
RewriteEngine on
RewriteCond %{REQUEST_URI} !api/
RewriteRule api/?$ index.php?page=newznabapi [QSA]
RewriteRule details/([^/]+) index.php?page=getspot&messageid=$1 [L]
Options Indexes FollowSymLinks MultiViews
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order deny,allow
Allow from all