mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-08-14 08:59:18 +02:00
Hardening Apache #41
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user