Advertisement
webzaytsev

Untitled

Apr 9th, 2024
1,490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.47 KB | None | 0 0
  1. location /blog {
  2.     alias /var/www/html/;
  3.     index index.php index.html index.htm;
  4.     try_files $uri $uri/ /blog/index.php$is_args$args;
  5.  
  6.     location ~ \.php$ {
  7.         try_files $uri =404;
  8.         include fastcgi_params;
  9.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  10.         fastcgi_pass wordpress_web:9000;
  11.         fastcgi_index index.php;
  12.         fastcgi_param SCRIPT_FILENAME $request_filename;
  13.         fastcgi_param PATH_INFO $fastcgi_path_info;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement