红联Linux门户
Linux帮助

apache的配置文件有哪写?

发布时间:2009-04-09 12:01:18来源:红联作者:njliuqi
已经有了5个DNSNAME, name1,name2,name3,name4,name5
两个dns :example1.com.cn(内网) example2.com.cn(外网)
一个dnsname针对一个tomcat服务
http://name1.example1.com.cn/
http://name1.exmaple2.com.cn/
http://name2.example1.com.cn/
http://name2.exmaple2.com.cn/
上面都是好的,都可以出来apache 的测试页面。可我配到3的时候内网是好的,
http://name3.example1.com.cn/ #OK
http://name3.example2.com.cn/ #ERROR

去问管理员他ping name3; name3.example1.com.cn;name3.example2.com.cn 都能找到。
可我ping就无法找到。
他说是我apache的配置不对,
我想除了/etc/httpd/conf/httpd.conf的主配置文件还有另外一个目录下面的相关配置文件没有别的配置文件了吧。
文章评论

共有 1 条评论

  1. njliuqi 于 2009-04-09 12:06:58发表:

    [i=s] 本帖最后由 njliuqi 于 2009-4-9 12:08 编辑 [/i]

    我用的是AJP协议
    在/etc/httpd/conf.d/目录下面的两个相关配置文件
    1. a.inc
    ProxyPass /demo ajp://localhost:8009/demo/
    ProxyPassReverse /demo ajp://localhost:8009/demo/

    Order allow,deny
    Allow from all


    2.vhost.conf

    NameVirtualHost **.**.**.**:80
    NameVirtualHost 172.16.1.22:80


    ServerName name1.example1.com.cn
    Include conf.d/a1.inc



    ServerName name1.example2.com.cn
    Include conf.d/a1.inc


    3.我的tomcat目录下面的server.xml配置文件里面关于AJP的配置也是正确的。
    port=8009