Skip to content

Instantly share code, notes, and snippets.

@williamokano
Last active April 10, 2016 20:22
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 williamokano/c8b537f2a3260cefa7e5e768b8398a1a to your computer and use it in GitHub Desktop.
Save williamokano/c8b537f2a3260cefa7e5e768b8398a1a to your computer and use it in GitHub Desktop.
[csgodealing]
user = william
group = william
listen = /run/php/php7-csgodealing.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
server {
listen 80;
root /home/william/Projetos/csgodealing/csgodealing-site/public;
index index.php index.html index.htm;
server_name csgodealing.dev;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7-csgodealing.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