nginx中配置多个虚拟主机实例
2016-09-07 16:17
507 查看
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 }
相关文章推荐
- Nginx配置虚拟主机实例
- nginx虚拟主机配置实例详解
- nginx常用配置实例(虚拟主机,防盗链,日志切割)
- nginx虚拟主机配置实例
- nginx虚拟主机配置实例
- Nginx虚拟主机配置实例(Nginx VirtualHost Example)
- Nginx虚拟主机配置实例(Nginx VirtualHost Example)
- nginx基于域名的虚拟主机 反向代理配置实例
- nginx 虚拟主机设置实例(多网站配置)
- nginx的基本配置和虚拟主机的配置
- 【NGINX】虚拟主机配置示例
- nginx配置虚拟主机
- xampp 配置多虚拟主机 实例
- Nginx1.0.9配置虚拟主机
- nginx配置虚拟主机,代理服务器
- 生产环境下的nginx.conf配置文件(多虚拟主机) 推荐
- 【Nginx】配置基于域名的虚拟主机
- Nginx的虚拟主机配置
- Nginx下多虚拟主机的配置
- Nginx 配置虚拟主机