Browse Source

Replace Apache config with an nginx one.

master
Niels G. W. Serup 5 years ago
parent
commit
9efcc292bc
  1. 16
      misc/apache.conf
  2. 16
      misc/nginx.conf

16
misc/apache.conf

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

@ -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;
}
}
Loading…
Cancel
Save