nginx配置域名
2014-04-14 19:58
381 查看
其他都一样,就特别说下server块的配置。
这里介绍了nginx基本模块的功能,以及讲了一些关于通配符的解析效果:http://www.nginx.cn/591.html。
server { listen 80; server_name www.icweshop.com; # 注意:这里你填写的域名必须在/etc/hosts中有配制,不然nginx就判你这个域名无效,死活不往下解析的!!! access_log logs/weshop.access.log; location / { proxy_pass http://127.0.0.1:9000; #proxy_redirect default; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Via "nginx"; } }
这里介绍了nginx基本模块的功能,以及讲了一些关于通配符的解析效果:http://www.nginx.cn/591.html。
相关文章推荐
- nginx server_参数配置总结(转)
- nginx 正则表达式匹配入门篇
- Nginx 介绍和相关链接汇总
- nginx模块开发404问题
- Nginx 负载均衡配置
- nginx 域名rewrite跳转
- nginx配置文件详细说明
- nginx Location配置总结(转)
- nginx -t "nginx: [warn] only the last index in "index" directive should be absolute in 6 "的问题解决
- nginx rewrite中last和break的区别
- 最全面 Nginx 入门教程 + 常用配置解析
- 服务器部署_linuix下 一台nginx 多域名之二
- nginx跨域
- Nginx Gzip模块启用和配置指令详解
- lanmp-nginx源码编译
- Nginx配置文件详细说明
- 配置nginx对php的支持
- windows下配置nginx+php环境
- nginx php-fpm配置
- Nginx 常见应用技术指南(Nginx Tips)