Skip to content

Instantly share code, notes, and snippets.

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 ThePixelDeveloper/282392 to your computer and use it in GitHub Desktop.
Save ThePixelDeveloper/282392 to your computer and use it in GitHub Desktop.

server { listen 80; server_name workdiary.aguimaraes.org; root /web/alvaro/aguimaraes.org/workdiary; access_log /web/alvaro/logs/workdiary.aguimaraes.org-access.log combined buffer=32k; error_log /web/alvaro/logs/workdiary.aguimaraes.org-error.log error; index index.php index.html index.htm;

location / { try_files $uri $uri/ @php; }

location @php { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/index.php; include fastcgi_params; } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment