Last active
February 27, 2023 21:47
-
-
Save michaelmeneses/485da36b43d1a5a1bce92ba060067f81 to your computer and use it in GitHub Desktop.
server nginx
This file contains 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
server { | |
listen 80; | |
server_name moodle.localhost; | |
root /var/www/moodle.localhost/moodle; | |
index index.php index.html index.htm; | |
location / { | |
try_files $uri $uri/ /index.php?$args =404; | |
} | |
location ~ [^/]\.php(/|$) { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_index index.php; | |
fastcgi_pass 127.0.0.1:9000; | |
include fastcgi_params; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment