VPS侦探论坛

 找回密码
 注册
查看: 6133|回复: 3

没有添加域名伪静态放在哪里?

[复制链接]
发表于 2011-10-27 16:59:05 | 显示全部楼层 |阅读模式

安装了lnmp了。很方便。感谢官方提供这么好的包。
目前只是用ip来访问 home/wwwroot

伪静态是要放在哪里?
我是apache转过来的。

.htaccess 没作用了。
先谢谢vpser.net。


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-27 17:37:10 | 显示全部楼层


编辑/usr/local/nginx/conf/nginx.conf  
加在server 段里。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-27 18:17:35 | 显示全部楼层

location / {
                       rewrite ^(.*)search\/([0-9a-zA-Z]{1,})\.html(.*)$ $1/index.php?Controller=search&Action=$2;
                       rewrite ^(.*)ask\/([0-9a-zA-Z]{1,})\.html(.*)$ $1/index.php?Controller=index&Action=ask&id=$2;
                       rewrite ^(.*)ask\/([0-9a-zA-Z]{1,})\_([0-9]{1,})\.html(.*)$ $1/index.php?Controller=index&Action=ask&id=$2&t=$3;
                      }

我加了这段ip就访问不了vsp了。。

=_=|||
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-10-27 18:22:03 | 显示全部楼层



搞定拉。谢谢大佬。
是我规则写错了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 13:37 , Processed in 0.025735 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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