Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443;
- listen [::]:443;
- server_name realmofespionage.com;
- root /var/www/html;
- index index.php index.html index.htm;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:2000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- }
- location / {
- rewrite ^(.*)$ /index.php?p=$1 last;
- break;
- }
- location ~* ^/(.*)\.(ico|css|js|gif|png|jpg|bmp|JPG|jpeg)$ {
- root /var/www/html;
- rewrite ^/(.*)$ /$1 break;
- access_log off;
- expires max;
- }
- ssl on;
- ssl_certificate /etc/nginx/ssl/ssl-unified.crt;
- ssl_certificate_key /etc/nginx/ssl/ssl.key;
- ssl_session_timeout 5m;
- ssl_protocols SSLv3 TLSv1;
- ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
- ssl_prefer_server_ciphers on;
- client_max_body_size 15m;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- }
- server {
- listen 80;
- server_name realmofespionage.com;
- rewrite ^ https://www.realmofespionage.com$request_uri? permanent;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement