Nginx的虚拟主机配置文件
2014-04-05 21:41
591 查看
server {
listen 80;
server_name www.aldjflas.cn;
access_log /home/logs/bbs/access.log combined buffer=32k;
error_log /home/logs/bbs/error.log warn;
location / {
index index.html index.htm index.php;
root /data/www/wwwroot/bbs;
}
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|thumb) {
root /data/www/wwwroot/bbs;
access_log off;
expires 10d;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/dev/shm/php-fcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/www/wwwroot/bbs$fastcgi_script_name;
}
}
listen 80;
server_name www.aldjflas.cn;
access_log /home/logs/bbs/access.log combined buffer=32k;
error_log /home/logs/bbs/error.log warn;
location / {
index index.html index.htm index.php;
root /data/www/wwwroot/bbs;
}
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|thumb) {
root /data/www/wwwroot/bbs;
access_log off;
expires 10d;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/dev/shm/php-fcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/www/wwwroot/bbs$fastcgi_script_name;
}
}
相关文章推荐
- [原]生产环境下的nginx.conf配置文件(多虚拟主机)
- nginx搭建虚拟主机的配置文件方法
- nginx 配置虚拟主机访问PHP文件 502错误的解决方法
- 虚拟主机ip配置,nginx.conf文件配置及日志文件切割
- Nginx(二)-- 配置文件之虚拟主机配置
- nginx作为web 虚拟主机配置文件模板
- 生产环境下的nginx.conf配置文件(多虚拟主机) (转)
- 生产环境下的nginx.conf配置文件(多虚拟主机)
- 生产环境下的nginx.conf配置文件(多虚拟主机)
- 生产环境下的nginx.conf配置文件(多虚拟主机)
- Nginx虚拟主机配置文件
- 生产环境下的nginx.conf配置文件(多虚拟主机)
- Nginx 虚拟主机下支持Pathinfo并隐藏入口文件的完整配置
- Nginx的基本配置:虚拟主机、日志文件、缓存、自动列目录的配置
- Nginx 虚拟主机 配置 支持独立urlwrite 文件, php-fpm独立用户和php....
- nginx关于配置多个虚拟主机和向后台转发的配置文件
- 【nginx运维基础(2)】Nginx的配置文件说明及虚拟主机配置示例
- nginx学习笔记4 nginx的配置文件2 虚拟主机的配置
- LAMP架构(nginx安装,默认虚拟主机,用户认证,域名重定向,nginx配置文件详解)
- 配置nginx的独立虚拟主机文件