Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- root /var/www/html/pindurian;
- index index.php index.html index.htm;
- server_name pindurian.com www.pindurian.com;
- location / {
- try_files $uri /index.php?$query_string;
- }
- location @rewrite {
- rewrite ^/(.*)$ /index.php?q=$1;
- }
- location ~ [^/]\.php(/|$) {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ ^/sites/.*/files/styles/ {
- try_files $uri @rewrite;
- }
- location ~ ^(/[a-z\-]+)?/system/files/ {
- try_files $uri /index.php?$query_string;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement