Guest User

Untitled

a guest
Jun 26th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1.  
  2. server {
  3. listen 80 default_server;
  4. server_name piwo.org www.piwo.org;
  5. return 301 https://www.piwo.org$request_uri;
  6. root /home/tomek/www/piwo_org/;
  7. index index.php index.html index.htm;
  8.  
  9. }
  10.  
  11. server {
  12. # konfiguracja SSL/http2
  13. listen 443 ssl http2 default_server;
  14.  
  15. include snippets/ssl-piwo.org.conf;
  16. include snippets/ssl-params.conf;
  17. index index.php index.html index.htm;
  18. root /home/tomek/www/piwo_org/;
  19.  
  20.  
  21.  
  22. location ~ [^/]\.php(/|$) {
  23. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  24. include fastcgi_params;
  25. include php_parametry;
  26. fastcgi_pass 127.0.0.1:9002;
  27. fastcgi_index index.php;
  28. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  29. }
  30.  
  31. location /
  32. {
  33. try_files $uri $uri/ /index.php;
  34. }
  35.  
  36. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  37. expires 1y;
  38. log_not_found off;
  39. add_header Cache-Control "public";
  40. }
  41.  
  42. #POD LETSENCRYPT
  43. location ~ /.well-known {
  44. allow all;
  45. }
  46.  
  47. # deny access to .htaccess files, if Apache's document root
  48. # concurs with nginx's one
  49.  
  50. location ~ /\.ht {
  51. deny all;
  52. }
  53. }
Add Comment
Please, Sign In to add comment