Created
May 9, 2022 21:44
-
-
Save PythonCoderAS/915e8155b5b0429d79b58352bc0cd1c5 to your computer and use it in GitHub Desktop.
Make a nginx server execute php
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 characters
| location ~ \.php$ { | |
| try_files $uri =404; | |
| # To run a specific version, change `php-fpm` to `php<X>.<Y>-fpm.sock`. | |
| fastcgi_pass unix:/var/run/php/php-fpm.sock; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| include fastcgi_params; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment