博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx默认配置改动
阅读量:6786 次
发布时间:2019-06-26

本文共 2779 字,大约阅读时间需要 9 分钟。

http {    include       mime.types;    default_type  application/octet-stream;    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '    #                  '$status $body_bytes_sent "$http_referer" '    #                  '"$http_user_agent" "$http_x_forwarded_for"';    #access_log  logs/access.log  main;    sendfile        on;    #tcp_nopush     on;    #keepalive_timeout  0;    keepalive_timeout  65;    #gzip  on;    #upstream localhost_tomcat7 {        #server localhost:8443;    #}    upstream localhost_tomcat7 {        server localhost:8080;    }    server {        listen       80;        server_name  www.test.com test.com;    ssi on;      ssi_silent_errors on;      ssi_types text/shtml;                  #charset koi8-r;        #access_log  logs/host.access.log  main;    location ~^/(webapp)/ {        proxy_pass http://localhost_tomcat7;    }        location / {            root   /usr/local/webapp/;            index  index.html index.htm;        }        #error_page  404              /404.html;        # redirect server error pages to the static page /50x.html        #        error_page   500 502 503 504  /50x.html;        location = /50x.html {            root   html;        }        # proxy the PHP scripts to Apache listening on 127.0.0.1:80        #        #location ~ \.php$ {        #    proxy_pass   http://127.0.0.1;        #}        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000        #        #location ~ \.php$ {        #    root           html;        #    fastcgi_pass   127.0.0.1:9000;        #    fastcgi_index  index.php;        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;        #    include        fastcgi_params;        #}        # deny access to .htaccess files, if Apache's document root        # concurs with nginx's one        #        #location ~ /\.ht {        #    deny  all;        #}    }    # 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       8445 ssl;        #server_name  localhost;        #ssl_certificate      cert.pem;        #ssl_certificate_key  cert.key;    #ssl_certificate f:/nginx/nginx-1.12.1/nginx-1.12.1/ssl/lee.crt;    #ssl_certificate_key f:/nginx/nginx-1.12.1/nginx-1.12.1/ssl/lee.key;        #ssl_session_cache    shared:SSL:1m;        #ssl_session_timeout  5m;        #ssl_ciphers  HIGH:!aNULL:!MD5;        #ssl_prefer_server_ciphers  on;        #location / {            #proxy_pass https://localhost_tomcat7;        #}    #}}

转载地址:http://wndgo.baihongyu.com/

你可能感兴趣的文章
2018.4.3三周第二次课
查看>>
eclipse_jee版本提供了从数据库直接生成实体类的工具!
查看>>
Error: Can't set headers after they are sent
查看>>
本地用户模式、虚拟用户模式使用
查看>>
任正非接班人亮相:原来他要的是这种类型!
查看>>
valgrind 运行出错
查看>>
ubuntu日常使用心得(随时更新中。。。)
查看>>
Java 多线程回顾
查看>>
二、nginx服务器基础配置命令
查看>>
TEMP表空间之Ogg复制进程占用
查看>>
java中的构造函数总结
查看>>
windows下kangle虚拟主机-安装mysql教程及心得
查看>>
我的友情链接
查看>>
ios中SQLite的重构封装
查看>>
centos 搭建 nagios 监控系统.
查看>>
管理禁忌小记录(一)
查看>>
遍历接口信息
查看>>
Dell R710 服务器更新windows server 2012的相关问题
查看>>
编程中最神奇的数字,你知道吗?
查看>>
数据可视化:柱状图、雷达图等六种基本图表的特点和适用场合
查看>>