Replace Apache config with an nginx one.
This commit is contained in:
parent
c382ac3f96
commit
9efcc292bc
|
@ -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>
|
|
@ -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…
Reference in New Issue