Compare commits

..

1 Commits

Author SHA1 Message Date
Adrian 2d35e73281 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 01:36:54 +01:00
6 changed files with 10 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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