Skip to content

Instantly share code, notes, and snippets.

@joetemp
Created January 23, 2019 19:25
Show Gist options
  • Save joetemp/64144a342a2cef8ce73b054b1f84ac42 to your computer and use it in GitHub Desktop.
Save joetemp/64144a342a2cef8ce73b054b1f84ac42 to your computer and use it in GitHub Desktop.
Nginx Config
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name ateamrebuild.com www.ateamrebuild.com;
root /var/www/html/ateamrebuild.com/public_html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment