Nginx反向代理配置


    server {
        listen       80;
        server_name  www.mogublog.cn  alias  static.mogublog.cn;
        index        index.html index.htm;
        root         /www/mogublog/mobile;

        location / {
            try_files $uri $uri/ @backend;
        }

        location @backend {
        	proxy_connect_timeout 300s;
            proxy_read_timeout 300s;
            proxy_send_timeout 300s;
            proxy_set_header Host $host;
            proxy_pass http://192.168.1.10;
        }

    }