You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had an issue where a PHP app was at the /virtual folder in my server. The fast_cgi was claiming "file not found". fastcgi_param SCRIPT_FILENAME $document_root/virtual/$fastcgi_script_name; solved the issue. Since the fast_cgi will search for scripts at the /virtual folder now.
maybe play around with this to see how modular it could be? just looking at it quickly it seems like the SCRIPT_FILENAME line can be moved out of phpsub.conf and the rewrite block could be eliminated entirely...
also with this config in particular, alias directive may not even be necessary since the folder name and the uri path are the same. perhaps it could be eliminated as well, or a better example used (where the uri is different from the physical path on the system).
The text was updated successfully, but these errors were encountered:
https://save.matbm.net/nsbwoasfiqbc.html?XJW5yw
Currently there is
phpsub.conf
:nginx-config-hacks/snippets/phpsub.conf
Lines 1 to 6 in 0ae23e7
and example subdirectory config:
nginx-config-hacks/sites/trwnh.com.conf
Lines 30 to 42 in 0ae23e7
maybe play around with this to see how modular it could be? just looking at it quickly it seems like the SCRIPT_FILENAME line can be moved out of phpsub.conf and the rewrite block could be eliminated entirely...
also with this config in particular,
alias
directive may not even be necessary since the folder name and the uri path are the same. perhaps it could be eliminated as well, or a better example used (where the uri is different from the physical path on the system).The text was updated successfully, but these errors were encountered: