Hi Partha,

It looks like you're asking for two things:
 1) that your server respond to "partha16" instead of "localhost", and
 2) that your server respond on port 80 instead of port 8085
Is that right?

1) is a DNS issue. If http://localhost:8085/DOMAIN is working now, I can help you get to http://localhost/DOMAIN, I can get rid of 8085, but I can't help you change the server hostname. That's an issue outside tomcat.

2) You have two options. You can either change tomcat's http port in server.xml, and stop running Apache, or you can add a ProxyPass directive to your VirtualHost block in Apache. I found your current httpd.conf file here: http://www.nabble.com/file/p25780775/httpd.conf
Try a VirtualHost block like so:

<VirtualHost *:80>
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\DOMAIN"
ServerName partha16
Alias /partha16/ "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\DOMAIN\DOMAIN"
ErrorLog logs/partha1.com-error_log
#JkMount /context
        ProxyPass / https://127.0.0.1:8085/
        ProxyPassReverse / https://127.0.0.1:8085/
        ProxyPreserveHost on
</VirtualHost>

Hope that helps, good luck.

- Nada

partha_ctc wrote:
Hi,
we have tomcat5.0 and apache1.3. my aim is instead of
http://localhost:8085/DOMAIN, how can i call http://partha16/DOMAIN. for
that i have mdified server.xml and httpd.conf file. but it says page not
found.
i have attached the httpd.conf file.
first i tried with virtual host , but it has not worked. so i commented the
virtualhost tag.
Can some one help me in this configuration peoble?
======
In apache: httpd.conf, i have following line:
httpd.conf
<Directory "D:/software/Tomcat 5.0/DOMAIN/DOMAIN">
     Order allow,deny
Allow from all </Directory>
DocumentRoot "D:/software/Tomcat 5.0/DOMAIN/DOMAIN"
Alias /partha16 "D:/software/Tomcat 5.0/DOMAIN/DOMAIN/"
<Location "/partha16">
        Order allow,deny
        Allow from all
# DirectoryIndex portal.htm </Location>
==========
following lines has been added in server.xml
server.xml

<Host name="partha16" debug="1" appBase="DOMAIN"
       unpackWARs="true" autoDeploy="true">

     <Logger className="org.apache.catalina.logger.FileLogger"
             directory="logs"  prefix="DOMAIN_com." suffix=".log"
             timestamp="true"/>

     <Context path="" docBase="DOMAIN" debug="0" reloadable="true">

     <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="DOMAIN." suffix=".log" timestamp="true" />

     <Resource name="mail/Session" auth="Container"
               type="javax.mail.Session"/>
         <ResourceParams name="mail/Session">
             <parameter>
                 <name>mail.smtp.host</name>
                 <value>localhost</value>
             </parameter>
         </ResourceParams>

     </Context>
</Host>
http://www.nabble.com/file/p25769060/httpd.conf httpd.conf

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to