全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 14713|回复: 53
打印 上一主题 下一主题

看看这个nginx.conf对吗 ?我怎么访问不到www/phpmyadmin目录呢 ?

[复制链接]
跳转到指定楼层
1#
发表于 2009-8-30 10:51:00 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
访问的是默认的目录


server
{
   listen       80;
   server_name  yiqim.com www.yiqim.com bbs.yiqim.com;
   index index.html index.htm index.php;
   root  /home/www/phpmyadmin;

   #limit_conn   crawler  20;   

   #针对Bo-Blog系统的Rewrite静态化
   rewrite ^/post/([0-9]+).htm$ /read.php?$1 last;
   rewrite ^/post/([0-9]+)_([0-9]+).htm$ /read.php?$1&page=$2 last;
   rewrite ^/post/([0-9]+)_([0-9]+)_([0-9]+).htm$ /read.php?$1&page=$2&part=$3 last;
   rewrite ^/index_([0-9]+)_([0-9]+).htm$ /index.php?mode=$1&page=$2 last;
   rewrite ^/star_([0-9]+)_([0-9]+).htm$ /star.php?mode=$1&page=$2 last;
   rewrite ^/category_([0-9]+).htm$ /index.php?go=category_$1 last;
   rewrite ^/category_([0-9]+)_([0-9]+)_([0-9]+).htm$ /index.php?go=category_$1&mode=$2&page=$3 last;
   rewrite ^/archive_([0-9]+)_([0-9]+).htm$ /index.php?go=archive&cm=$1&cy=$2 last;
   rewrite ^/archive_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).htm$ /index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4 last;
   rewrite ^/showday_([0-9]+)_([0-9]+)_([0-9]+).htm$ /index.php?go=showday_$1-$2-$3 last;
   rewrite ^/showday_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).htm$ /index.php?go=showday_$1-$2-$3&mode=$4&page=$5 last;

   location ~ .*\.(php|php5)?$
   {
     #将Nginx与FastCGI的通信方式由TCP改为Unix Socket。TCP在高并发访问下比Unix Socket稳定,但Unix Socket速度要比TCP快。
     fastcgi_pass  unix:/tmp/php-cgi.sock;
     #fastcgi_pass  127.0.0.1:9000;
     fastcgi_index index.php;
     include fcgi.conf;
   }

   location ~ /read.php
   {
     #将Nginx与FastCGI的通信方式由TCP改为Unix Socket。TCP在高并发访问下比Unix Socket稳定,但Unix Socket速度要比TCP快。
     fastcgi_pass  unix:/tmp/php-cgi.sock;
     #fastcgi_pass  127.0.0.1:9000;
     fastcgi_index index.php;
     include fcgi.conf;
   }
   
   #博客的图片较多,更改较少,将它们在浏览器本地缓存15天,可以提高下次打开我博客的页面加载速度。
   location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
   {
     expires      15d;
   }

   #博客会加载很多JavaScript、CSS,将它们在浏览器本地缓存1天,访问者在看完一篇文章或一页后,再看另一篇文件或另一页的内容,无需从服务器再次下载相同的JavaScript、CSS,提高了页面显示速度。
   location ~ .*\.(js|css)?$
   {
     expires      1d;
   }   

   log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
             '$status $body_bytes_sent "$http_referer" '
             '"$http_user_agent" $http_x_forwarded_for';
   access_log  /data1/logs/access.log  access;
   }
54#
发表于 2009-8-30 22:00:51 | 只看该作者

回复 53# 的帖子

53#
发表于 2009-8-30 21:39:42 | 只看该作者

回复 52# 的帖子

....................
52#
发表于 2009-8-30 21:05:23 | 只看该作者

回复 51# 的帖子

看来我弄得比较乱
51#
发表于 2009-8-30 21:02:12 | 只看该作者

回复 50# 的帖子

我习惯 用 空行 分段 呵呵
50#
发表于 2009-8-30 19:29:03 | 只看该作者

回复 49# 的帖子

空行我都删掉的,影响视觉
49#
发表于 2009-8-30 17:51:00 | 只看该作者

回复 48# 的帖子

你那是 把 空行删了 是在第四行呵呵
48#
发表于 2009-8-30 17:49:10 | 只看该作者

回复 47# 的帖子

第四行
47#
发表于 2009-8-30 17:46:48 | 只看该作者
找不到 nginx.pid 可以看 nginx.conf 里面的 配置 就在 开头 7行左右
46#
发表于 2009-8-30 16:22:40 | 只看该作者
reboot 起不来好像是通病,偶尔发生。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-9 14:49 , Processed in 0.067314 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表