Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] httpd.conf file configuration for
<VirtualHost></VirtualHost>

Tomcat User6

2008-07-21

Replies:

Author LoginPost Reply

hi,

I am having a problem in configuring the <VirtualHost></VirtualHost> tab in
httpd.cong file fro apache web server. I have my application deployed on
Tomcat 6.0 server with below configuration in server.xml.

<Host name="forum.dev.abc.com"
appBase="/usr/local/apache-tomcat-6.0.16/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
  directory="logs"
  prefix="local_roller_access_log."
  suffix=".txt"
  pattern="common"
  resolveHosts="false"/></Host>

The application is deployed at Tomcat's webapps directory
"/usr/local/apache-tomcat-6.0.16/webapps" under roller directory.

My website uses the apache server so first when I typed
"http://forum.dev.abc.com/roller/" on web browser the action will go to
Tomcat server to run application. Each request is made on apache server and
and requested to tomcat server.

My apache server's httpd.conf file's configuration is as below:

# NameVirtualHost forum.dev.abc.com:80
<VirtualHost forum.dev.abc.com:80>
    ServerName forum.dev.abc.com
    ServerAlias forum.dev.abc.com
    DocumentRoot /usr/local/apache-tomcat-6.0.16/webapps
    DirectoryIndex index.jsp
       
    ErrorLog logs/forum_error_log
    <Directory / >
       Options FollowSymLinks
       AllowOverride all
       Order allow,deny
       Allow from all
    </Directory>

 JkMount /*.jsp wrkr
    JkMount /*.do wrkr
    JkMount /*.action wrkr
</VirtualHost>


my problem is when I typed at browser as
"http://forum.dev.abc.com:8080/roller/" then as it is running on Tomcat it
works fine. each and every actions and links are working fine. but when I
typed in "http://forum.dev.abc.com:80/roller/" or
"http://forum.dev.abc.com/roller/" at browser then as it is running on
apache server and redirecting all requests to tomcat the links are not
working. The first page loaded same for both the requests but links on first
page is not working on apache server i.e. working on tomcat server.

I am pretty much sure that its a problem with configuration with httpd.conf
file for <VirtualHost></VirtualHost>. If you help me out with this, this
will be a great help.

Thank you in advance.

--
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.