Created
September 12, 2018 10:56
-
-
Save sevennt/bde7b6aa5f2eba87358b729396bcf451 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
| listen 80; | |
| server_name satisfy. example.com; | |
| index index.php index.html; | |
| root /home/www/satisfy. example.com/web/; | |
| access_log /var/log/nginx/satisfy. example.com.log; | |
| error_log /var/log/nginx/satisfy. example.com.error.log error; | |
| rewrite_log on; | |
| location / { | |
| log_by_lua_block { | |
| ngx.log(ngx.ERR, 11); | |
| } | |
| index index.html; | |
| root /home/www/satisfy. example.com/repo; | |
| } | |
| location /admin { | |
| alias /home/www/satisfy. example.com/web; | |
| try_files $uri /index.php; | |
| } | |
| location ~* \.php$ { | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| #fastcgi_pass unix:/var/run/php-cgi.sock; | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index index.php; | |
| } | |
| location = /favicon.ico { | |
| log_not_found off; | |
| access_log off; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment