nginx中配置多个虚拟主机实例
来源:互联网 发布:大数据就业方向 编辑:程序博客网 时间:2024/06/13 14:15
server
{
listen 80;
server_name dodadm113.sky5.com;
index index.php index.html;
#autoindex on;
root /app/nginx/wwwroot/dodadm.sky5.com/wwwroot;
#error_page 404 = /404.php;
1236 location ~ \.php$
1237 {
1238 fastcgi_pass 127.0.0.1:9001;
1239 fastcgi_index index.php;
1240 fastcgi_intercept_errors on;
1241 include fcgi.conf;
1242 }
1243 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf) {
1244 expires max;
}
}
server
{
listen 80;
server_name sdoadm178.sdo.com;
index index.php index.html;
#autoindex on;
root /app/nginx/wwwroot/sdoadm.sdo.com/wwwroot;
1254 #error_page 404 = /404.php;
1255 location ~ \.php$
1256 {
1257 fastcgi_pass 127.0.0.1:9001;
1258 fastcgi_index index.php;
1259 fastcgi_intercept_errors on;
1260 include fcgi.conf;
1261 }
1262 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf)
1263 {
1264 expires max;
1265 }
1266 }
server
{
listen 80;
1270 server_name doltest113.dance.com;
1271 index index.php index.html;
1272 #autoindex on;
1273 root /app/nginx/wwwroot/doltest.dance.com/wwwroot;
1274 #error_page 404 = /404.php;
1275 location ~ \.php$
1276 {
1277 fastcgi_pass 127.0.0.1:9001;
1278 fastcgi_index index.php;
1279 fastcgi_intercept_errors on;
1280 include fcgi.conf;
1281 }
1282 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf) {
1283 expires max;
1284 }
1285 }
{
listen 80;
server_name dodadm113.sky5.com;
index index.php index.html;
#autoindex on;
root /app/nginx/wwwroot/dodadm.sky5.com/wwwroot;
#error_page 404 = /404.php;
1236 location ~ \.php$
1237 {
1238 fastcgi_pass 127.0.0.1:9001;
1239 fastcgi_index index.php;
1240 fastcgi_intercept_errors on;
1241 include fcgi.conf;
1242 }
1243 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf) {
1244 expires max;
}
}
server
{
listen 80;
server_name sdoadm178.sdo.com;
index index.php index.html;
#autoindex on;
root /app/nginx/wwwroot/sdoadm.sdo.com/wwwroot;
1254 #error_page 404 = /404.php;
1255 location ~ \.php$
1256 {
1257 fastcgi_pass 127.0.0.1:9001;
1258 fastcgi_index index.php;
1259 fastcgi_intercept_errors on;
1260 include fcgi.conf;
1261 }
1262 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf)
1263 {
1264 expires max;
1265 }
1266 }
server
{
listen 80;
1270 server_name doltest113.dance.com;
1271 index index.php index.html;
1272 #autoindex on;
1273 root /app/nginx/wwwroot/doltest.dance.com/wwwroot;
1274 #error_page 404 = /404.php;
1275 location ~ \.php$
1276 {
1277 fastcgi_pass 127.0.0.1:9001;
1278 fastcgi_index index.php;
1279 fastcgi_intercept_errors on;
1280 include fcgi.conf;
1281 }
1282 location ~* ^.+\.(jpg|jpeg|gif|css|js|xml|swf) {
1283 expires max;
1284 }
1285 }
0 0
- nginx中配置多个虚拟主机实例
- nginx虚拟主机配置实例
- Nginx配置虚拟主机实例
- nginx如何添加多个虚拟主机配置
- Nginx虚拟主机配置实例(Nginx VirtualHost Example)
- nginx多虚拟主机配置
- nginx多虚拟主机配置
- tomcat中配置多个虚拟主机
- Linux上Nginx如何添加多个虚拟主机配置
- linux上nginx如何添加多个虚拟主机配置
- 配置多个虚拟主机
- nginx-服务器多虚拟主机配置
- Nginx实现多虚拟主机配置
- Nginx实现多虚拟主机配置
- nginx 多域名虚拟主机配置 (nginx如何绑定多个域名)
- nginx 多域名虚拟主机配置 (nginx如何绑定多个域名)
- Nginx实现多个站点使用一个端口(配置Nginx的虚拟主机)
- Nginx实现多个站点使用一个端口(配置Nginx的虚拟主机)
- python urlretrieve
- curl模拟post提交
- 数据库基础知识001
- JS 获取当前Timestamp
- 前端html-1
- nginx中配置多个虚拟主机实例
- android代码优化
- 字符编码笔记:ASCII,Unicode和UTF-8
- C# 进程间通信
- 处理imageView圆角
- fmpeg中的时间
- 我的Python第五篇 函数篇
- 自定义表情键盘
- JAVA - - - - 内部类的方法(外部调用内部类的方法)