Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- server_name piwo.org www.piwo.org;
- return 301 https://www.piwo.org$request_uri;
- root /home/tomek/www/piwo_org/;
- index index.php index.html index.htm;
- }
- server {
- # konfiguracja SSL/http2
- listen 443 ssl http2 default_server;
- include snippets/ssl-piwo.org.conf;
- include snippets/ssl-params.conf;
- index index.php index.html index.htm;
- root /home/tomek/www/piwo_org/;
- location ~ [^/]\.php(/|$) {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- include fastcgi_params;
- include php_parametry;
- fastcgi_pass 127.0.0.1:9002;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location /
- {
- try_files $uri $uri/ /index.php;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires 1y;
- log_not_found off;
- add_header Cache-Control "public";
- }
- #POD LETSENCRYPT
- location ~ /.well-known {
- allow all;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- location ~ /\.ht {
- deny all;
- }
- }
Add Comment
Please, Sign In to add comment