Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name viventoura.de;
- if ($request_method != POST ) {
- return 301 http://www.$server_name$request_uri;
- }
- location / {
- root /usr/share/nginx/html/sites/viventura/prod/web;
- index index.php index.html index.htm;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/sites/viventura/prod/web$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- server {
- listen 80;
- server_name www.viventoura.de;
- # if ($request_method != POST ) {
- # return 301 https://www.$server_name$request_uri;
- # }
- location / {
- root /usr/share/nginx/html/sites/viventura/prod/web;
- index index.php index.html index.htm;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- #try_files $uri /index.php =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/sites/viventura/prod/web$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- server {
- listen 443 ssl;
- server_name www.viventoura.de;
- access_log /var/log/nginx/www.viventoura.de.access.log;
- error_log /var/log/nginx/www.viventoura.de.error.log;
- add_header Strict-Transport-Security "max-age=31536000";
- ssl_certificate /etc/letsencrypt/live/www.viventoura.de/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/www.viventoura.de/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:AES256+ECDHE';
- ssl_dhparam /etc/nginx/dhparams.pem;
- location / {
- root /usr/share/nginx/html/sites/viventura/prod/web;
- index index.php index.html index.htm;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ ^/go(.*) {
- autoindex off;
- rewrite .* /backend.php last;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/sites/viventura/prod/web$fastcgi_script_name;
- include fastcgi_params;
- }
- # Media: images, icons, video, audio, HTC
- location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
- root /usr/share/nginx/html/sites/viventura/prod/web;
- expires 10y;
- access_log off;
- add_header Cache-Control "public";
- }
- # CSS and Javascript
- location ~* \.(?:css|js|jsx)$ {
- root /usr/share/nginx/html/sites/viventura/prod/web;
- expires 1M;
- access_log off;
- add_header Cache-Control "public";
- }
- include /etc/nginx/sites-available/viventura.de.redirect.conf;
- }
Add Comment
Please, Sign In to add comment