Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ****************************************************************
- server {
- listen 80;
- server_name tps.sytes.net;
- root /web/sites/tps.sytes.net/www/;
- index index.php index.html index.htm;
- access_log /web/sites/tps.sytes.net/log/access.log main;
- error_log /web/sites/tps.sytes.net/log/error.log;
- location / {
- return 301 https://tps.sytes.net$request_uri;
- }
- location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
- return 301 https://tps.sytes.net$request_uri;
- }
- location ~ \.php$ {
- return 301 https://tps.sytes.net$request_uri;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- rewrite ^ /robots.txt break;
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 80;
- server_name www.tps.sytes.net;
- rewrite ^ https://tps.sytes.net$request_uri? permanent;
- }
- server {
- listen 443 ssl http2;
- server_name tps.sytes.net;
- root /web/sites/tps.sytes.net/www/;
- index index.php index.html index.htm;
- access_log /web/sites/tps.sytes.net/log/ssl-access.log main;
- error_log /web/sites/tps.sytes.net/log/ssl-error.log;
- keepalive_timeout 60;
- ssl_certificate /etc/letsencrypt/live/tps.sytes.net/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/tps.sytes.net/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
- ssl_dhparam /etc/ssl/certs/dhparam.pem;
- add_header Strict-Transport-Security 'max-age=604800';
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
- access_log off;
- expires max;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param DOCUMENT_ROOT /web/sites/tps.sytes.net/www/;
- fastcgi_param SCRIPT_FILENAME /web/sites/tps.sytes.net/www$fastcgi_script_name;
- fastcgi_param PATH_TRANSLATED /web/sites/tps.sytes.net/www$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_param HTTPS on;
- fastcgi_intercept_errors on;
- fastcgi_ignore_client_abort off;
- fastcgi_connect_timeout 60;
- fastcgi_send_timeout 180;
- fastcgi_read_timeout 180;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 443 ssl http2;
- server_name www.tps.sytes.net;
- rewrite ^ https://tps.sytes.net$request_uri? permanent;
- }
- *************************************************************************************************
- server {
- listen 80;
- server_name gfx.sytes.net;
- root /web/sites/gfx.sytes.net/www/;
- index index.php index.html index.htm;
- access_log /web/sites/gfx.sytes.net/log/access.log main;
- error_log /web/sites/gfx.sytes.net/log/error.log;
- location / {
- return 301 https://gfx.sytes.net$request_uri;
- }
- location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
- return 301 https://gfx.sytes.net$request_uri;
- }
- location ~ \.php$ {
- return 301 https://gfx.sytes.net$request_uri;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- rewrite ^ /robots.txt break;
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 80;
- server_name www.gfx.sytes.net;
- rewrite ^ https://gfx.sytes.net$request_uri? permanent;
- }
- server {
- listen 443 ssl http2;
- server_name gfx.sytes.net;
- root /web/sites/gfx.sytes.net/www/;
- index index.php index.html index.htm;
- access_log /web/sites/gfx.sytes.net/log/ssl-access.log main;
- error_log /web/sites/gfx.sytes.net/log/ssl-error.log;
- keepalive_timeout 60;
- ssl_certificate /etc/letsencrypt/live/gfx.sytes.net/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/gfx.sytes.net/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
- ssl_dhparam /etc/ssl/certs/dhparam.pem;
- add_header Strict-Transport-Security 'max-age=604800';
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
- access_log off;
- expires max;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param DOCUMENT_ROOT /web/sites/gfx.sytes.net/www/;
- fastcgi_param SCRIPT_FILENAME /web/sites/gfx.sytes.net/www$fastcgi_script_name;
- fastcgi_param PATH_TRANSLATED /web/sites/gfx.sytes.net/www$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_param HTTPS on;
- fastcgi_intercept_errors on;
- fastcgi_ignore_client_abort off;
- fastcgi_connect_timeout 60;
- fastcgi_send_timeout 180;
- fastcgi_read_timeout 180;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 443 ssl http2;
- server_name www.gfx.sytes.net;
- rewrite ^ https://gfx.sytes.net$request_uri? permanent;
- }
- **************************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement