Nginx在其他配置上加载站点

时间:2019-02-11 21:25:40

标签: nginx config

我在nginx-1.13.8中遇到了一个问题:
当我添加新配置时:

server {  
    listen      443 ssl http2;
    server_name msc.example.com www.msc.example.com;
    client_max_body_size 64m;
    ssl                     on;
    ssl_certificate         ../cert/combinednew.crt;
    ssl_certificate_key     ../cert/private_rsa.key;

    access_log logs/example.msc.access.log;
    error_log logs/example.msc.error.log warn;

    location / {
        proxy_pass    http://192.168.200.4:80;
        proxy_set_header Host      $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

由于某种原因,重新启动nginx后开始在其他配置上加载网站。
可以在日志中建立它:

[11/Feb/2019:23:08:13 +0200] "GET / HTTP/2.0" 200 3101 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/Manas/css/responsive.css?fin20 HTTP/2.0" 200 2765 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/Manas/css/index.css?fin20 HTTP/2.0" 200 15622 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/Manas/scripts/theme.js?fin20 HTTP/2.0" 200 1417 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/default/css/smf_snowflakes.css?snow5 HTTP/2.0" 200 482 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/default/scripts/script.js?fin20 HTTP/2.0" 200 13077 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/default/scripts/jquery.snow0.js?snow3 HTTP/2.0" 200 705 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/default/scripts/jquery_3.3.1_min_snowflakes.js?snow3 HTTP/2.0" 200 30309 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:13 +0200] "GET /Themes/Manas/images/collapse.gif HTTP/2.0" 200 125 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:14 +0200] "GET /Themes/Manas/images/custom/flat-bg.jpg HTTP/2.0" 200 168670 "https://forum.example.com/Themes/Manas/css/index.css?fin20" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:14 +0200] "GET /Themes/Manas/images/expand.gif HTTP/2.0" 200 126 "https://msc.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:14 +0200] "GET /Themes/Manas/images/theme/main_block.png HTTP/2.0" 200 320127 "https://forum.example.com/Themes/Manas/css/index.css?fin20" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
[11/Feb/2019:23:08:14 +0200] "GET /favicon.ico HTTP/2.0" 404 244 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"  

它是一个forum.*.log文件,但msc.*.log的文件为空。

有人可以帮忙吗?

0 个答案:

没有答案