Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name youwingiris4.com www.youwingiris4.com;
- root /usr/share/nginx/youwingiris.com/public_html;
- location ~* \.(eot|ttf|woff)$ {
- add_header Access-Control-Allow-Origin *;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|swf)$ {
- expires 30d;
- }
- location ~ (\.inc\.php|\.tpl|\.sql|\.tpl\.php|\.db|\.svn)$ {
- deny all;
- }
- location / {
- ssi on;
- index index.php index.html index.htm;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- if (!-e $request_filename) {
- rewrite ^.*$ /index.php last;
- }
- location ~ \.php$ {
- root html;
- fastcgi_buffers 8 512k;
- fastcgi_buffer_size 512k;
- fastcgi_read_timeout 180;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/share/nginx/youwingiris.com/public_html$fastcgi_script_name;
- include fastcgi_params;
- client_max_body_size 10M;
- fastcgi_param PHP_VALUE "upload_max_filesize = 10M \n post_max_size=11M \n memory_limit = 512M";
- }
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/youwinyeniadres.com/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/youwinyeniadres.com/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement