Ubuntu下Apache2+Mod_jk+WildFly8无法外网访问 10C
 我在Ubuntu环境下搭建Apache与WildFly整合,使用Mod_jk。结果本机可以访问,但在虚拟机(VirtualBox下Win7)下能够访问Apache页面,却访问不了项目。相关环境配置文件如下:

1. httpd-jk.conf
 <IfModule jk_module>
    JkWorkersFile /etc/libapache2-mod-jk/workers.properties
    JkLogFile /var/log/apache2/mod_jk.log
    JkLogLevel info
    JkShmFile /var/log/apache2/jk-runtime-status
    JkWatchdogInterval 60
    <Location /jk-status>
        JkMount jk-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
    <Location /jk-manager>
        JkMount jk-manager
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
</IfModule>

2. worker.properties
ps=/
workers.java_home=/usr/lib/java/jdk1.7.0_79

worker.list = irisweb,iristask

 worker.ajp13_worker.port = 8009
worker.ajp13_worker.host = localhost
worker.ajp13_worker.type = ajp13

worker.iristask.type = ajp13
worker.iristask.host = localhost
worker.iristask.port = 40003

worker.irisweb.type = ajp13
worker.irisweb.host = localhost
worker.irisweb.port = 30005

worker.ajp13_worker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker
``
3. sites-enabled/irisweb.conf

 NameVirtualHost dev.gdass.irissz.com:80

<VirtualHost dev.gdass.irissz.com:80>
  ServerName dev.gdass.irissz.com
  ServerName 192.168.10.207
<Location "/">
  SetOutputFilter DEFLATE
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>
  JkMount /irisweb* irisweb
  Alias /irisres "/iriswork/iris-gdass/iris-static-resource/irisres"
  <Directory "/iriswork/iris-gdass/iris-static-resource/irisres">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>
</VirtualHost>

4. standalone.xml
<interfaces>
        <interface name="any">
            <any-ipv4-address/>
        </interface>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:0.0.0.0}"/>
        </interface>
        <interface name="unsecure">
            <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
        </interface>
    </interfaces>

在本机环境下访问dev.gdass.irissz.com/irisweb正常,在虚拟机中却无法访问,但访问dev.gdass.irissz.com可以出现Apache欢迎页。
请各位大神帮小弟看看,出了什么问题。

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问