请问lnmp的Nginx如何绑定域名绑定目录
请问lnmp的Nginx如何绑定域名绑定目录本人是新手 安装了Nginx做web服务器 跟iis完全不一样 希望求帮助 http://lnmp.org/install.html 教程里写的很明白。。。回复 2# 的帖子
嗯 请问我如何设置域名到二级目录下 我这样设置正确吗server
{
listen 80;
server_name www1.myfwq.com;
index index.html index.htm index.php;
root/home/wwwroot/dede;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
} 二级的一样可以用/root/vhost.sh添加。
回复 4# 的帖子
您好 我看了好像有一个自动绑定域名添加的吗 请问怎么弄回复 4# 的帖子
求一个图文教程:) :) :) http://lnmp.org/install.html 教程虚拟主机管理里写的很明白。。。回复 7# 的帖子
哦 看到了 请问如何查看已经添加的虚拟主机回复 8# 的帖子
ls /usr/local/nginx/conf/vhost/就会列出
页:
[1]