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 hoofdletterj/d80f7d5c78633dd937b1db7098431fd0 to your computer and use it in GitHub Desktop.
Save hoofdletterj/d80f7d5c78633dd937b1db7098431fd0 to your computer and use it in GitHub Desktop.
Deploy Laravel 5.6 in a LEMP environment - a complete guide
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/app/public;
index.php index index.html index.htm index.nginx-debian.html;
server_name 001.001.001.001;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/app/public;
index.php index index.html index.htm index.nginx-debian.html;
server_name 001.001.001.001;
location / {
try_files $uri $uri/ /index.php?$query_string =404;
}
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/app/public;
index index.html index.htm index.nginx-debian.html;
server_name 001.001.001.001;
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment