Compare commits

..

1 Commits

Author SHA1 Message Date
Adrian 5e482a7f08 Update Nginx config
* Make only Let's Encrypt path available on port 80
* Protect WordPress admin URLs
* Seperate logs for hosts
* Update example PHP config
* Update README
2016-03-17 00:53:40 +01:00
6 changed files with 7 additions and 10 deletions

View File

@ -0,0 +1,2 @@
access_log /data/log/nginx/$server_name-access.log;
error_log /data/log/nginx/$server_name-error.log;

View File

@ -6,8 +6,7 @@ server {
root /usr/share/nginx/html;
index index.php index.html index.htm;
access_log /data/log/nginx/test-access.log;
error_log /data/log/nginx/test-error.log;
include inc/server-log;
location / {
try_files $uri $uri/ /index.php$is_args$args;

View File

@ -3,8 +3,7 @@ server {
listen 443 ssl;
access_log /data/log/nginx/git-access.log;
error_log /data/log/nginx/git-error.log;
include inc/server-log;
location / {
proxy_pass http://localhost:3000;

View File

@ -1,8 +1,7 @@
server {
server_name www.example.com;
access_log /data/log/nginx/www-access.log;
error_log /data/log/nginx/www-error.log;
include inc/server-log;
location / {
proxy_pass http://localhost:4567/;

View File

@ -3,8 +3,7 @@ server {
listen 443 ssl;
access_log /data/log/nginx/seafile-access.log;
error_log /data/log/nginx/seafile-error.log;
include inc/server-log;
location / {
proxy_pass http://localhost:8000;

View File

@ -1,8 +1,7 @@
server {
server_name trac.example.com;
access_log /data/log/nginx/trac-access.log;
error_log /data/log/nginx/trac-error.log;
include inc/server-log;
client_max_body_size 20M;