mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-03 06:07:23 +02:00
Hardening Apache #41
This commit is contained in:
parent
65239c7533
commit
5ea2fbc745
@ -4,13 +4,14 @@ LABEL Author="Jeroen Geusebroek <me@jeroengeusebroek.nl>"
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
TERM="xterm" \
|
||||
APTLIST="apache2 php7.4 php7.4-curl php7.4-gd php7.4-gmp php7.4-mysql php7.4-pgsql php7.4-xml php7.4-xmlrpc php7.4-mbstring php7.4-zip git-core cron wget jq locales" \
|
||||
REFRESHED_AT='2021-07-31'
|
||||
REFRESHED_AT='2021-11-12'
|
||||
|
||||
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup &&\
|
||||
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache && \
|
||||
apt-get -q update && \
|
||||
apt-get -qy dist-upgrade && \
|
||||
apt-get install -qy $APTLIST && \
|
||||
a2enmod headers && \
|
||||
locale-gen --no-purge nl_NL.UTF-8 en_US.UTF-8 && \
|
||||
\
|
||||
# Cleanup
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user