kiah 发表于 2011-5-19 14:18:46

请问lnmp的Nginx如何绑定域名绑定目录

请问lnmp的Nginx如何绑定域名绑定目录本人是新手 安装了Nginx做web服务器 跟iis完全不一样 希望求帮助

licess 发表于 2011-5-19 15:10:41

http://lnmp.org/install.html 教程里写的很明白。。。

kiah 发表于 2011-5-19 16:04:28

回复 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;
}

licess 发表于 2011-5-19 16:09:29

二级的一样可以用/root/vhost.sh添加。

kiah 发表于 2011-5-19 16:12:52

回复 4# 的帖子

您好 我看了好像有一个自动绑定域名添加的吗 请问怎么弄

kiah 发表于 2011-5-19 16:36:02

回复 4# 的帖子

求一个图文教程:) :) :)

licess 发表于 2011-5-19 17:03:14

http://lnmp.org/install.html 教程虚拟主机管理里写的很明白。。。

kiah 发表于 2011-5-19 17:55:57

回复 7# 的帖子

哦 看到了 请问如何查看已经添加的虚拟主机

licess 发表于 2011-5-19 19:41:15

回复 8# 的帖子

ls /usr/local/nginx/conf/vhost/
就会列出
页: [1]
查看完整版本: 请问lnmp的Nginx如何绑定域名绑定目录