美文网首页
nginx conf

nginx conf

作者: de7e01056dd4 | 来源:发表于2016-11-26 11:10 被阅读20次

# scp命令

scp -r /Users/zjx/Documents/weixin/ root@10.2.5.119:/opt/mobile

nginx reload命令:
/usr/local/nginx/sbin/nginx -s reload

nginx配置监听端口:

cat /usr/local/nginx/conf/nginx.conf
 server {
        listen  80;
        listen 443 ssl;
        server_name  x.xxxxx.com;
        ssl_certificate /usr/local/nginx/ssl/t.huimai365.com_bundle.crt;
        ssl_certificate_key  /usr/local/nginx/ssl/t.huimai365.com.key;
        ssl_session_timeout  5m;
        ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers  HIGH:!ADH:!EXPORT56:RC4+RSA:+MEDIUM;

        location / {
          index index.html index.php index.htm;
          root /data/taurus/weixin;
        }         

        location /weixin/ {
            index index.html index.php index.htm;
            root /data/taurus/;
        }

        location /ios/ {
            index index.html index.php index.htm;
            root /data/taurus/;
        }

        location /android/ {
            index index.html index.php index.htm;
            root /data/taurus/;
        }
        #location / {
            #root /data/taurus/taurus-mobile;
        #    index index.html index.php index.htm;
        #    proxy_next_upstream http_502 http_503 http_504 error timeout invalid_header;
        #                       proxy_cache cache_one;
        #    proxy_pass http://weixin;

         #   proxy_set_header Host $host;
          #  proxy_set_header X-Forwarded-For  $http_x_forwarded_for;
           # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        #}


        #location ~ .*\.(gif|jpg|png|htm|html|css|js|flv|ico|swf)(.*) {
        #     root /data/taurus/taurus-mobile;
        #     expires 2h;
        #}
       #location /nginx_status
       #{
       #    stub_status on;
       #    access_log off;
       #    allow 127.0.0.1;
       #    deny all;
       #}
  }

问题经过:react-router启动express服务器,未经过nginx监听的端口,没有找到正确的bundle.js文件

相关文章

网友评论

      本文标题:nginx conf

      本文链接:https://www.haomeiwen.com/subject/kizwpttx.html