Skip to content

Instantly share code, notes, and snippets.

@sabrina-zeidan
Created May 3, 2020 11:33
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 sabrina-zeidan/ac62dfde2308016ddfdb586b754cc3c6 to your computer and use it in GitHub Desktop.
Save sabrina-zeidan/ac62dfde2308016ddfdb586b754cc3c6 to your computer and use it in GitHub Desktop.
Outfunnel.com nginx settings
server {
listen 80;
listen [::]:80;
server_name outfunnel.com www.outfunnel.com;
root /var/www/outfunnel.com-production;
index index.php;
client_max_body_size 100M;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_connect_timeout 300s;
fastcgi_read_timeout 300s;
fastcgi_send_timeout 300s;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment