nginx配置虚拟主机
来源:互联网 发布:js 取反运算符 编辑:程序博客网 时间:2024/06/17 15:54
1. nginx.conf 文件中最后一句
include vhosts.conf;
2. include vhosts.conf文件加入要配置的虚拟主机节点信息。
server { listen 80; server_name df.php.com; #主机名 #charset koi8-r; #access_log logs/host.access.log main; root "F:\phpStudy\WWW\df.php.com"; #目录index index.php index.html index.htm; #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
0 0
- Nginx 配置虚拟主机
- nginx配置虚拟主机
- 【NGINX】虚拟主机配置示例
- Nginx虚拟主机配置教程
- Nginx 虚拟主机 VirtualHost 配置
- Nginx虚拟主机配置教程
- nginx配置虚拟主机
- nginx配置+虚拟主机
- Nginx虚拟主机配置
- Nginx 虚拟主机 VirtualHost 配置
- nginx虚拟主机配置实例
- Nginx 虚拟主机 VirtualHost 配置
- Nginx 虚拟主机 VirtualHost 配置
- nginx多虚拟主机配置
- Nginx的虚拟主机配置
- nginx---虚拟主机配置
- Nginx 虚拟主机 VirtualHost 配置
- nginx虚拟主机配置
- SOA面向服务架构——SOA的概念
- Android深入浅出系列之服务机制—1.Android中的Service
- 从asset中读取文件
- Android 5.0 Contacts源码分析
- bash的基本功能(重定向、管道符、通配符)
- nginx配置虚拟主机
- Content management system
- addr2line命令
- Android 通过系统使用NotificationListenerService 监听各种Notification的使用方法
- HDU 2108 Shape of HDU
- object-c property关键字
- adt怎么关联第三方jar包源码的方法
- 拥抱高效、拥抱 Bugtags 之来自用户的声音(五)
- HDU3037(Lucas定理)