添加留言
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
danls
2009-4-22 15:15
站长你好
你的apm非常不错
我使用你的  Nginx+php 使用IP能够正常访问
但是按网上说的绑定域名就不能正确了
代码如下

    server {
        listen       80;
        server_name  localhost;
        index index.html index.htm index.php;
        root   /APMServ5.2.6/www/htdocs;
        autoindex on;
        
        location ~ .*.(php|php5)?$ {
            fastcgi_pass   127.0.0.1:9000;
            include /APMServ5.2.6/nginx/conf/fastcgi_params;
        }

        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  /APMServ5.2.6/nginx/logs/access.log  access;
    }

    server {
        listen       80;
        server_name www.1.com;
        index index.html index.htm index.php;
        root   /APMServ5.2.6/www/htdocs/1;
        autoindex on;
        
        location ~ .*.(php|php5)?$ {
            fastcgi_pass   127.0.0.1:9000;
            include /APMServ5.2.6/nginx/conf/fastcgi_params;
        }

        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  /APMServ5.2.6/nginx/logs/access.log  access;
    }
server {
        listen       80;
        server_name www.2.com;
        index index.html index.htm index.php;
        root   /APMServ5.2.6/www/htdocs/2;
        autoindex on;
        
        location ~ .*.(php|php5)?$ {
            fastcgi_pass   127.0.0.1:9000;
            include /APMServ5.2.6/nginx/conf/fastcgi_params;
        }
        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  /APMServ5.2.6/nginx/logs/access.log  access;
    }

两个域名都在本地hosts文件中做了解析
单叶 Email Homepage
2009-4-22 10:44
谢谢博主开发的这个东东。。呵呵 以前整PHP的服务器太麻烦了。有了博主这东东后,俺眼不花了,手不累了,架设服务器快了
小网
2009-4-20 20:28
你好. 我用的是REDHAT linux 企业版5 ,所有的配置过程都是照你的配置来的,可是执行/usr/local/webserver/php/sbin/php-fpm start的时候,总是提示-bash: /usr/local/webserver/php/sbin/php-fpm: 没有那个文件或目录.怎么解决????其他的能正常启动.
2009-4-20 14:21
你好 想请教一个问题
你的博客赚钱的话 除了广告费
流量会赚钱吗
蓝天白云 Homepage
2009-4-20 09:57
请问APMSERV适合用于实际的服务器生产环境么?
AB
2009-4-18 21:45
1、Apache启动失败,请检查相关配置。√MySQL5.1已启动。sweat
pp
2009-4-18 14:02
我不知道5.2.6能不能在windows7下运行。昨天新装了windows7,用5.2.0 apache启动不起来。我联系方式QQ:42144754
嘿嘿 Email
2009-4-18 11:49
今天第一次进你的博客,很受启发!你进比我大三岁,成就却斐然(当然不能和丁磊,马云等人比)grin,你就是我学习的榜样!!
为自己的三十岁奋斗!!谢谢!!zan
无心
2009-4-17 17:52
从小霸王学习机入门成长为网络系统工程师
    张宴,签约新浪的民大网络第一人,作为特邀嘉宾来到现场。他开发了多款网络系统,而这一切却来源于父亲抽奖偶得的一部小霸王学习机。他说,刚开始的时候只是拿来玩游戏,后来游戏玩得厌烦了,就用上面的一个编程小软件学习编小游戏,从那时起,他便一步步接触电脑和网络,踏踏实实的学习,终于靠着实力敲开了新浪的大门。
berg Email
2009-4-17 13:00
这是一条隐藏评论或留言。您需要以合适的身份登入后才能看到。
分页: 2978/3024 第一页 上页 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 下页 最后页