Advertisement
Guest User

Untitled

a guest
Oct 25th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.63 KB | None | 0 0
  1. server {
  2.     server_name youwingiris4.com www.youwingiris4.com;
  3.  
  4.     root   /usr/share/nginx/youwingiris.com/public_html;
  5.  
  6.     location ~* \.(eot|ttf|woff)$ {
  7.         add_header Access-Control-Allow-Origin *;
  8.     }
  9.  
  10.     location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|swf)$ {
  11.         expires 30d;
  12.     }
  13.  
  14.     location ~ (\.inc\.php|\.tpl|\.sql|\.tpl\.php|\.db|\.svn)$ {
  15.         deny all;
  16.     }
  17.  
  18.     location / {
  19.         ssi on;
  20.         index  index.php index.html index.htm;
  21.     }
  22.  
  23.     error_page  404              /404.html;
  24.     error_page   500 502 503 504  /50x.html;
  25.     location = /50x.html {
  26.         root   /usr/share/nginx/html;
  27.     }
  28.  
  29.     if (!-e $request_filename) {
  30.         rewrite ^.*$ /index.php last;
  31.     }
  32.  
  33.     location ~ \.php$ {
  34.         root           html;
  35.         fastcgi_buffers 8 512k;
  36.         fastcgi_buffer_size 512k;
  37.         fastcgi_read_timeout 180;
  38.         fastcgi_pass   127.0.0.1:9000;
  39.         fastcgi_index  index.php;
  40.         fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/youwingiris.com/public_html$fastcgi_script_name;
  41.         include        fastcgi_params;
  42.         client_max_body_size 10M;
  43.         fastcgi_param PHP_VALUE "upload_max_filesize = 10M \n post_max_size=11M \n memory_limit = 512M";
  44.     }
  45.  
  46.     listen 443 ssl; # managed by Certbot
  47.     ssl_certificate /etc/letsencrypt/live/youwinyeniadres.com/fullchain.pem; # managed by Certbot
  48.     ssl_certificate_key /etc/letsencrypt/live/youwinyeniadres.com/privkey.pem; # managed by Certbot
  49.     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  50.     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement