diff --git a/misc/apache.conf b/misc/apache.conf deleted file mode 100644 index f3499f8..0000000 --- a/misc/apache.conf +++ /dev/null @@ -1,16 +0,0 @@ - - ServerName media.metanohi.name - ServerAlias www.media.metanohi.name hvy.metanohi.name www.hvy.metanohi.name films.metanohi.name www.films.metanohi.name - ServerAdmin ngws@metanohi.name - - DocumentRoot /home/niels/prog/media - - Options Indexes Includes FollowSymLinks MultiViews - AllowOverride All - Require all granted - - - LogLevel warn - ErrorLog ${APACHE_LOG_DIR}/error-media.metanohi.name.log - CustomLog ${APACHE_LOG_DIR}/access-media.metanohi.name.log combined - diff --git a/misc/nginx.conf b/misc/nginx.conf new file mode 100644 index 0000000..3957c12 --- /dev/null +++ b/misc/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + listen [::]:80; + + root /var/www/media.metanohi.name/site; + + index index.html; + + server_name media.metanohi.name; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + } +}