Created
January 8, 2020 10:00
-
-
Save lorainwings/b2f4a7b1a8bb2944666fab6ca3ad1ad5 to your computer and use it in GitHub Desktop.
Revisions
-
lorainwings revised this gist
Jan 8, 2020 . No changes.There are no files selected for viewing
-
lorainwings created this gist
Jan 8, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ location ~ /(.*)/detail { set $first_path $1; root /home/www/growth-upgrade/html; try_files $uri $uri/ $first_path/index.html; if (!-e $request_filename) { rewrite ^/(.*) /$first_path/index.html last; break; } } location ~ /(.*)/(.*) { set $first_path $1; set $following_path $2; root /home/www/growth-upgrade/html; try_files $uri $uri/ $first_path/index.html; if (!-e $request_filename) { rewrite ^/(.*) /$first_path/index.html last; break; } }