Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name sql.mertcangokgoz.com;
- return 301 https://sql.mertcangokgoz.com;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- # SSL
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_session_tickets off;
- # modern configuration
- ssl_protocols TLSv1.2;
- ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256;
- ssl_prefer_server_ciphers on;
- # OCSP Stapling
- ssl_stapling on;
- ssl_stapling_verify on;
- resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 valid=60s;
- resolver_timeout 2s;
- ssl_certificate /etc/letsencrypt/live/mertcangokgoz.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/mertcangokgoz.com/privkey.pem;
- add_header Strict-Transport-Security max-age=15768000;
- client_max_body_size 100M;
- set $base /var/www/mertcangokgoz.com;
- root $base/sql;
- index index.html index.htm index.php;
- server_name sql.mertcangokgoz.com;
- charset utf-8;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
- access_log off;
- expires max;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ \.php$ {
- fastcgi_index index.php;
- fastcgi_keep_conn on;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement