Skip to content

Instantly share code, notes, and snippets.

@michaelmeneses
Last active February 27, 2023 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelmeneses/485da36b43d1a5a1bce92ba060067f81 to your computer and use it in GitHub Desktop.
Save michaelmeneses/485da36b43d1a5a1bce92ba060067f81 to your computer and use it in GitHub Desktop.
server nginx
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