CentOS下nginx解析本地虚拟域名
来源:互联网 发布:守望先锋性能数据vrm 编辑:程序博客网 时间:2024/05/17 04:50
nginx配置文件中,server_name配置一个虚拟域名,要到/etc/hosts下增加一个本地域名127.0.0.1 www.abc.com
server { listen 80; #listen [::]:80; server_name www.abc.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroor/www.abc.com/public; include none.conf; #error_page 404 /404.html; location ~ [^/]\.php(/|$) { # comment try_files $uri =404; to enable pathinfo try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; #include pathinfo.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log off; }
0 0
- CentOS下nginx解析本地虚拟域名
- nginx配置本地虚拟域名
- linux环境下配置nginx虚拟域名
- windows下Nginx配置虚拟域名
- nginx配置虚拟域名
- nginx 虚拟域名映射
- nginx配置虚拟域名
- nginx配置虚拟域名
- Nginx本地域名转发
- apache本地虚拟域名设置
- Apache配置本地虚拟域名
- 本地apache配置虚拟域名
- centos下安装nginx,并配置域名转发
- centos域名不能解析
- Centos不能解析域名
- nginx 绑定域名(centos linux)
- nginx下配置域名
- 本地CentOS 7 下 安装 LEMP 服务(nginx+MariaDB+php)
- android handler的警告Handler Class Should be Static or Leaks Occur
- 二叉查找树
- SQL Server Collation介绍
- 点击TextField禁止弹出键盘
- CXF提供Client调用WebService接口的方法
- CentOS下nginx解析本地虚拟域名
- ASPxGridView实现点击行则自动启用编辑状态
- 下拉框
- .NET导出Excel遇到的错误的解决方法
- 安装完CentOS 7 后必做的七件事
- Linux常用快捷键
- Objective-C 中声明指针变量时 星号( *)如何安放 居左or居右
- confluence数据备份与还原
- eredis连接twemproxy auth失败的问题