1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

convert wp to native nginx

This commit is contained in:
Tim Moody 2019-12-29 10:25:08 -05:00
parent 7508b770f0
commit 374c63c27f
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,19 @@
location {{ wp_url }} {
#rewrite_log on;
root {{ content_base }};
location ~ .*\.php$ {
include fastcgi_params;
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ ^({{ wp_url }})(/.*)/$ {
include fastcgi_params;
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME {{ wp_abs_path }}/index.php;
}
}