Changes between Version 2 and Version 3 of Ticket #818, comment 2


Ignore:
Timestamp:
10/21/15 15:07:41 (9 years ago)
Author:
tamere22@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #818, comment 2

    v2 v3  
    2222
    2323server {
    24         server_name siteA.com;
     24        '''server_name siteA.com;'''
    2525        include conf.d/listen;
    2626        location / {
     
    3333        access_log  /var/log/nginx/access.log  main;
    3434        access_log /var/log/nginx/sites/siteA.com-access.log main;
    35         error_log /var/log/nginx/sites/siteA.com-error.log error;
     35        '''error_log /var/log/nginx/sites/siteA.com-error.log error;'''
    3636
    3737}
    3838
    3939server {
    40         server_name siteB.com;
     40        '''server_name siteB.com;'''
    4141        include conf.d/listen;
    4242        location / {
     
    5353        access_log  /var/log/nginx/access.log  main;
    5454        access_log /var/log/nginx/sites/siteB.com-access.log main;
    55         error_log /var/log/nginx/sites/siteB.com-error.log error;
     55        '''error_log /var/log/nginx/sites/siteB.com-error.log error;'''
    5656
    5757}
     
    6161error log file /var/log/nginx/sites/siteB.com-error.log contains siteA.com entries! :
    6262
    63 2015/10/21 13:07:24 [error] 17273#0: *9914491 access forbidden by rule, client: 80.215.155.196, server: siteB.com, request: "GET / HTTP/1.1", host: "siteA.com"
    64 2015/10/21 13:07:24 [error] 17273#0: *9914491 access forbidden by rule, client: 80.215.155.196, server: siteB.com, request: "GET /favicon.ico HTTP/1.1", host: "siteB.com"
    65 2015/10/21 13:41:52 [error] 17273#0: *10130318 access forbidden by rule, client: 84.101.96.33, server: siteB.com, request: "GET / HTTP/1.1", host: "siteA.com"
     632015/10/21 13:07:24 [error] 17273#0: *9914491 access forbidden by rule, client: 80.215.155.196, '''server: siteB.com''', request: "GET / HTTP/1.1", '''host: "siteA.com"'''
     642015/10/21 13:07:24 [error] 17273#0: *9914491 access forbidden by rule, client: 80.215.155.196, '''server: siteB.com''', request: "GET /favicon.ico HTTP/1.1", '''host: "siteB.com"'''
     652015/10/21 13:41:52 [error] 17273#0: *10130318 access forbidden by rule, client: 84.101.96.33, '''server: siteB.com''', request: "GET / HTTP/1.1", '''host: "siteA.com"'''
    6666
    6767How is it possible ?