Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 ;
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name elibrary.rajadev.com www.elibrary.rajadev.com;
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_session_tickets off;
- ssl_protocols TLSv1.2;
- ssl_ciphers EECDH+AESGCM:EECDH+AES;
- ssl_ecdh_curve secp384r1;
- ssl_prefer_server_ciphers on;
- ssl_certificate /usr/share/nginx/apibnivision/cert.pem;
- ssl_certificate_key /usr/share/nginx/apibnivision/key.pem;
- ssl_stapling on;
- ssl_stapling_verify on;
- add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload";
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- # Tell Nginx and Passenger where your app's 'public' directory is
- root /usr/share/nginx/html;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ =404;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- error_log /var/log/nginx/sistemperpus.log;
- access_log /var/log/nginx/sistemperpus.log;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement