- JAVA_HOME=/usr/local/jdk1.6.0_11
- JRE_HOME=/usr/local/jdk1.6.0_11/jre
- PATH=$JAVA_HOME/bin:JRE_HOME/bin:$PATH
- CLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
- export JAVA_HOME JRE_HOME PATH CLASSPATH
- java version "1.6.0_11"
- Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
- Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
- checking for zlib location... not found
- checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
- ./configure --prefix=/usr/local/apache --enable-so --enable-vhost-alias --enable-rewrite --enable-deflate --enable-mods-shared=all --with-mpm=worker
- LoadModule jk_module modules/mod_jk.so
- Include conf/extra/httpd-vhosts.conf //这一句前面的#去掉
- # Virtual hosts
- Include conf/extra/httpd-vhosts.conf //在这一行下添加
- Include conf/mod_jk.conf
- #ServerName www.example.com:80为ServerName 127.0.0.1:80
- <IfModule dir_module>
- DirectoryIndex index.html index.htm index.jsp
- </IfModule>
- JkWorkersFile conf/workers.properties
- JkLogFile logs/mod_jk.log
- JkLogLevel info
- JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
- JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
- JkRequestLogFormat "%w %V %T"
- #Defining a worker named worker1 and of type ajp13
- worker.list=worker1
- #Set properties for worker1
- worker.worker1.type=ajp13
- worker.worker1.host=localhost
- worker.worker1.port=8009
- worker.worker1.lbfactor=50
- worker.worker1.cachesize=10
- worker.worker1.cache_timeout=600
- worker.worker1.socket_keepalive=1
- worker.worker1.socket_timeout=300
- NameVirtualHost *:80
- #
- # VirtualHost example:
- # Almost any Apache directive may go into a VirtualHost container.
- # The first VirtualHost section is used for all requests that do not
- # match a ServerName or ServerAlias in any <VirtualHost> block.
- #
- <VirtualHost *:80>
- ServerAdmin webmaster@hx10.com
- DocumentRoot "/usr/local/jboss-4.2.3.GA/server/default/deploy"
- ServerName 192.168.145.129
- ServerAlias www.hx10.com
- JkMount /*.jsp worker1
- JkMount /jmx-console/* worker1 //这个工程能通过80端口来访问
- JkMount /web-console/* worker1 //这个工程能通过80端口来访问,如果没有定义的工程,不能访问
- #apache will serve the static picture
- JkUnMount /*.jpg worker1
- #JkUnMount /*.gif worker1
- JkUnMount /*.swf worker1
- JkUnMount /*.bmp worker1
- JkUnMount /*.png worker1
- ErrorLog "logs/dummy-host.example.com-error_log"
- CustomLog "logs/dummy-host.example.com-access_log" common
- </VirtualHost>
- <!--
- <Connector port="8080" address="${jboss.bind.address}"
- maxThreads="250" maxHttpHeaderSize="8192"
- emptySessionPath="true" protocol="HTTP/1.1"
- enableLookups="false" redirectPort="8443" acceptCount="100"
- connectionTimeout="20000" disableUploadTimeout="true" />
- -->
这这一段注视掉
新闻热点
疑难解答