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