Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.61 KB | None | 0 0
  1. # strip app.php/ prefix if it is present
  2.     rewrite ^/app\.php/?(.*)$ /$1 permanent;
  3.  
  4.     location / {
  5.         index app.php;
  6.         try_files $uri @rewriteapp;
  7.     }
  8.  
  9.     location @rewriteapp {
  10.         rewrite ^(.*)$ /app.php/$1 last;
  11.     }
  12.  
  13.  
  14.     # wordpress part
  15.     location /blog {
  16.         index index.php;
  17.         try_files $uri $uri/ /blog/index.php?$args;
  18.  
  19.         location ~ \.php$ {
  20.             fastcgi_pass phpfcgi;
  21.             include fastcgi_params;
  22.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23.             fastcgi_param HTTPS on;
  24.             }
  25.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement