Skip to content

Instantly share code, notes, and snippets.

@stanleybz
Forked from psgganesh/default
Last active April 10, 2018 05:21
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 stanleybz/e98400b0b3fca9c504b266d9c13e1e86 to your computer and use it in GitHub Desktop.
Save stanleybz/e98400b0b3fca9c504b266d9c13e1e86 to your computer and use it in GitHub Desktop.
Simple lumen nginx conf
server {
# ---- Should be default on your config ----
listen 80;
listen [::]:80;
# ......
# ---- ^^^ should be default set on your config ^^^ ----
# root path please set to the backend public file
root /var/www/html/quickstart/public;
# just copy the below path for setting index file
index index.php index.html index.htm index.nginx-debian.html;
# the public domain
server_name cpb.xtechnology.com.cn;
# just copy the below path for setting route fall redirect
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# ......
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment