cleanups
This commit is contained in:
@@ -14,29 +14,32 @@ server {
|
||||
ssl_certificate /etc/ssl/gruszczynski.cc/fullchain.pem;
|
||||
ssl_certificate_key /etc/ssl/gruszczynski.cc/privkey.pem;
|
||||
|
||||
# logging
|
||||
access_log /var/log/angie/gruszczynski.cc.access.log;
|
||||
error_log /var/log/angie/gruszczynski.cc.error.log warn;
|
||||
|
||||
|
||||
status_zone gruszczynski.cc;
|
||||
|
||||
# ssl cfg
|
||||
include config/ssl_cfg.conf;
|
||||
|
||||
# security
|
||||
include config/security.conf;
|
||||
|
||||
status_zone gruszczynski.cc;
|
||||
|
||||
# restrict methods
|
||||
if ($request_method !~ ^(GET)$) {
|
||||
return '405';
|
||||
}
|
||||
|
||||
|
||||
if ($host = 'www.gruszczynski.cc') {
|
||||
return 301 http://www.linuxiarz.pl$request_uri;
|
||||
}
|
||||
|
||||
|
||||
error_page 404 403 500 504 502 =200 /;
|
||||
|
||||
# logging
|
||||
access_log /var/log/angie/gruszczynski.cc.access.log;
|
||||
error_log /var/log/angie/gruszczynski.cc.error.log warn;
|
||||
|
||||
# index.html
|
||||
index index.html;
|
||||
|
||||
@@ -45,11 +48,6 @@ server {
|
||||
|
||||
# letsencrypt
|
||||
include config/letsencrypt.conf;
|
||||
|
||||
# handle .php
|
||||
# location ~ \.php$ {
|
||||
# include config/php_fastcgi.conf;
|
||||
# }
|
||||
}
|
||||
|
||||
# HTTP redirect
|
||||
|
||||
Reference in New Issue
Block a user