Advertisement
binjuhor

WordPress local

Mar 9th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.89 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen 443 ssl;
  4.     server_name formbuilder.loc.binjuhor.com;
  5.     error_page 500 502 503 504 /50x.html;
  6.  
  7.     root /var/www/formbuilder.loc.binjuhor.com;
  8.     index index.html index.htm index.php;
  9.  
  10.     location / {
  11.         try_files $uri $uri/ /index.php?$args;
  12.     }
  13.  
  14.     location ~ \.php {
  15.         try_files $uri $uri/ /index.php?$args;
  16.         fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  17.         if (!-f $document_root$fastcgi_script_name) {
  18.             return 404;
  19.         }
  20.         fastcgi_pass 127.0.0.1:9000;
  21.         fastcgi_param SCRIPT_FILENAME $request_filename;
  22.         include fastcgi_params;
  23.     }
  24.  
  25.     # Rewrite rules for WordPress Multi-site.
  26.     if (!-e $request_filename) {
  27.         rewrite /wp-admin$ $scheme://$host$uri/ permanent;
  28.         rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
  29.         rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement