Skip to content

Instantly share code, notes, and snippets.

@sevennt
Created September 12, 2018 10:56
Show Gist options
  • Select an option

  • Save sevennt/bde7b6aa5f2eba87358b729396bcf451 to your computer and use it in GitHub Desktop.

Select an option

Save sevennt/bde7b6aa5f2eba87358b729396bcf451 to your computer and use it in GitHub Desktop.
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