Advertisement
sairi

Conf nginx

Jul 12th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. root /var/www/html/pindurian;
  5. index index.php index.html index.htm;
  6. server_name pindurian.com www.pindurian.com;
  7.  
  8. location / {
  9. try_files $uri /index.php?$query_string;
  10. }
  11.  
  12. location @rewrite {
  13. rewrite ^/(.*)$ /index.php?q=$1;
  14. }
  15.  
  16. location ~ [^/]\.php(/|$) {
  17. include snippets/fastcgi-php.conf;
  18. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22.  
  23. location ~ ^/sites/.*/files/styles/ {
  24. try_files $uri @rewrite;
  25. }
  26.  
  27. location ~ ^(/[a-z\-]+)?/system/files/ {
  28. try_files $uri /index.php?$query_string;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement