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.

-- 
View this message in context: 
http://www.nabble.com/httpd.conf-file-configuration-for-%3CVirtualHost%3E%3C-VirtualHost%3E-tp18578272p18578272.html
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to