Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen 443 ssl;
- server_name formbuilder.loc.binjuhor.com;
- error_page 500 502 503 504 /50x.html;
- root /var/www/formbuilder.loc.binjuhor.com;
- index index.html index.htm index.php;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php {
- try_files $uri $uri/ /index.php?$args;
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- include fastcgi_params;
- }
- # Rewrite rules for WordPress Multi-site.
- if (!-e $request_filename) {
- rewrite /wp-admin$ $scheme://$host$uri/ permanent;
- rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
- rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement