-
-
Save stanleybz/e98400b0b3fca9c504b266d9c13e1e86 to your computer and use it in GitHub Desktop.
Simple lumen nginx conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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