ngix配置
来源:互联网 发布:拍证书的软件 编辑:程序博客网 时间:2024/05/18 01:12
重启 ./nginx -s reloadservice nginx restart
server {
listen 80;server_name www.****.org ;
location / { // 以/ 开头的
root /usr/src/web/www/WebContent/page;
index index.jsp index.htm;
proxy_pass http://www..****..org:8001;//转向的地址
}
location = / { //等于
proxy_pass http://www.****org/home/index;
}
location ~* \.(txt|doc)$ {
root /usr/src/web/www;
deny all; //禁止访问
}
}
server {
listen 80;
server_name cms..****..org ;
location / {
proxy_pass http://cms..****..org:8002; //转向的地址
}
location ~* \.(txt|doc)$ {
root /usr/src/web/cms;
deny all;
}
}
tomcat 地址重写
<Context docBase="D:\work\apache-tomcat-7.0.52\webapps\****" path="/*****" reloadable="true" />
0 0
- ngix配置
- ngix配置
- ngix安装配置
- ngix配置入门
- 配置centos 7.2 ngix
- ngix
- ngix
- ngix
- ngix+apache下https配置
- widows环境下配置NGIX+PHP服务器
- Ngix+Tomcat配置集群负载均衡
- 使用supervisor和ngix配置多线程的负载均衡
- ngix学习
- ngix使用
- ngix 作用
- Ngix介绍
- 在linux环境中对ngix做反向代理配置及优化
- 公司项目所用到的一些配置(SpringMvc+maven+ngix+tomcat)
- SET XACT_ABORT ON
- 黑马程序员-OC的内存管理笔记
- 禁止访问者查看网页源代码
- Memcached 之 .NET(C#)实例分析
- gcc基础 知识
- ngix配置
- laravel安装redis拓展
- 关于Tomcat的URIEncoding以及GET乱码
- android打开开发者选项
- Android:Activity:启动模式
- 在fragment中使用onActivityResult
- NSTimer
- C/C++ 快速排序,插入排序
- js判断object类型