Thanks a lot.
I tried setting the my_port variable and also setting on JAVA_OPTS on tomcat 4.1.30 it 
did not work. 
But it worked in 5.0 version.
Can it be done in 4.1 also ?
Could anybody tell me the reason as to why it cannot be done in 4.1?

Thanks and Regards,
Satya

-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 05, 2004 05:03 PM
To: Tomcat Users List
Subject: Re: Doubt regarding Confguring HTTP port


This can be done in tomcat5. For example:
     <Connector port="${my_port}" address="${my_address}"
                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                enableLookups="false" redirectPort="8443" acceptCount="100"
                debug="0"
                disableUploadTimeout="true"
                compression="off"
                compressionMinSize="2048"
                noCompressionUserAgents="gozilla, traviata"
                compressableMimeType="text/html,text/xml" />


[Assuming unix] - before running startup.sh - first set the JAVA_OPTS 
environment variable to set 2 system properties for the jvm.
For example:
export JAVA_OPTS='-Dmy_port=8080 -Dmy_address=10.0.0.23'

On windows - see the FAQ on setting JAVA_OPTS. (for cygwin, the above command 
works fine)

-Tim

Narayan, Satya wrote:

> Hi,
>        I have a doubt regarding configuring the HTTP port. I know that this can be 
> done in the conf/server.xml. But my doubt is whether this can be overridden by 
> giving it as a startup parameter of tomcat. Kindly advise.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to