Replace Apache config with an nginx one.

This commit is contained in:
Niels G. W. Serup 2016-08-25 02:34:29 +02:00
parent c382ac3f96
commit 9efcc292bc
2 changed files with 16 additions and 16 deletions

View File

@ -1,16 +0,0 @@
<VirtualHost *:80>
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
<Directory /home/niels/prog/media/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error-media.metanohi.name.log
CustomLog ${APACHE_LOG_DIR}/access-media.metanohi.name.log combined
</VirtualHost>

16
misc/nginx.conf Normal file
View File

@ -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;
}
}