Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/www/html/nisite;
- index index.php index.html index.htm;
- server_name www2.company.com wp-newsite-stg-02.company.com;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ .php$ {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- # =================================
- location /office {
- root /var/www/html/oldsite;
- }
- }
- location ^~ /office {
- root /var/www/html/oldsite;
- location ~ .php$ {
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement