70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary-kitchen.space www.binary-kitchen.space binary.kitchen www.binary.kitchen;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://www.binary-kitchen.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name static.binary-kitchen.de;
|
|
|
|
location / {
|
|
return 301 https://www.binary-kitchen.de/static/$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name www.binary-kitchen.de;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/www.binary-kitchen.de.key;
|
|
ssl_certificate /etc/nginx/ssl/www.binary-kitchen.de.crt;
|
|
|
|
root /var/www/kitchen;
|
|
|
|
client_max_body_size 32M;
|
|
|
|
index index.php;
|
|
|
|
location = / {
|
|
return 301 https://www.binary-kitchen.de/wiki/;
|
|
}
|
|
|
|
location /owncloud {
|
|
rewrite ^/owncloud(/.*)$ https://oc.binary-kitchen.de$1;
|
|
}
|
|
|
|
location ~ /wiki/(data/|conf/|bin/|inc/|install.php) {
|
|
deny all;
|
|
}
|
|
|
|
location /static {
|
|
autoindex on;
|
|
}
|
|
|
|
location ~ \.php(?:$|/) {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
fastcgi_intercept_errors on;
|
|
}
|
|
}
|