企业助手

煤炭能源行业企业助手产品说明


nginx配置

<p><code>$nginxhome/conf/nginx.conf</code> 文件配置</p> <pre><code class="language-conf">#user  nobody; worker_processes  1; error_log  logs/error.log; #error_log  logs/error.log  notice; #error_log  logs/error.log  info; #pid        logs/nginx.pid; events {     worker_connections  1024; } http {     include       mime.types;     default_type  application/octet-stream;     #log_format  main  '$remote_addr - $remote_user [$time_local] &amp;quot;$request&amp;quot; '     #                  '$status $body_bytes_sent &amp;quot;$http_referer&amp;quot; '     #                  '&amp;quot;$http_user_agent&amp;quot; &amp;quot;$http_x_forwarded_for&amp;quot;';     #access_log  logs/access.log  main;     sendfile        on;     #tcp_nopush     on;     #keepalive_timeout  0;     keepalive_timeout  65;     #gzip  on;     server {         listen 8081;         server_name wlbip.wlmtjt.com; #将这里修改为您的二级域名,例如:blog.example.com         location /nccloud/resources {             alias   /home/nginx-mobileapp-1.22.1/html/ea;             index  index.html index.htm;         }         location /service/massologin {             proxy_pass http://10.3.10.52;             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;         }         location /nccloud/mob {             proxy_pass http://10.3.10.52;             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;         }         location /ncchr {             proxy_pass http://10.3.10.52;             proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;         }     }     # another virtual host using mix of IP-, name-, and port-based configuration     #     #server {     #    listen       8000;     #    listen       somename:8080;     #    server_name  somename  alias  another.alias;     #    location / {     #        root   html;     #        index  index.html index.htm;     #    }     #}     # HTTPS server     #     #server {     #    listen       443 ssl;     #    server_name  localhost;     #    ssl_certificate      cert.pem;     #    ssl_certificate_key  cert.key;     #    ssl_session_cache    shared:SSL:1m;     #    ssl_session_timeout  5m;     #    ssl_ciphers  HIGH:!aNULL:!MD5;     #    ssl_prefer_server_ciphers  on;     #    location / {     #        root   html;     #        index  index.html index.htm;     #    }     #} }</code></pre>

页面列表

ITEM_HTML