You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by re...@free.fr on 2008/08/27 11:20:07 UTC

config problem

hello,

we are facing a problem!
config:
jdk 1.4
tomcat 4

the server is configured to be accessed by an network internal IP
but it is not working with an external IP . i did the config in the server.xml
but it is not working

[...]
<Host name="<my.network.internal.ip>" debug="0" appBase="/usr/tomcat/webapps"
       unpackWARs="true" autoDeploy="true">
              <Context path="" docBase="gedai" debug="1"/>
		<Alias<<my.external.ip></Alias>
		<Alias><my.network.internal.ip></Alias>


	<Valve className="org.apache.catalina.valves.AccessLogValve"
                directory="logs"  prefix="gedai_access_log." suffix=".txt"
                pattern="common" resolveHosts="false"/>
</Host>
[...]

when i try to access to the IP, i've got an error 500 - no context configured...

what did i do wrong??

supareno

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: config problem

Posted by supareno <re...@free.fr>.
Eric,

thanks...
i thought to this solution yesterday afternoon and i gave it to the person
who's facing to the problem. i don't know if it works today

i will see on monday!

thanks again
> Assuming you are running private IP's in your internal network and a
> public IP on the external network, you can create a  dns such as
> mynetwork.mydomain.com which will resolve to the private IP when accessed
> inside the network and public IP when accessed externally. use this name
> as the hostname in server.xml 
>
> Eric
> -----Original Message-----
> From: reno.rkcrew@free.fr
> To: Tomcat Users List <us...@tomcat.apache.org>
> Date: Wed, 27 Aug 2008 11:20:07 +0200
> Subject: config problem
>
>   
>> hello,
>>
>> we are facing a problem!
>> config:
>> jdk 1.4
>> tomcat 4
>>
>> the server is configured to be accessed by an network internal IP
>> but it is not working with an external IP . i did the config in the
>> server.xml
>> but it is not working
>>
>> [...]
>> <Host name="<my.network.internal.ip>" debug="0"
>> appBase="/usr/tomcat/webapps"
>>        unpackWARs="true" autoDeploy="true">
>>               <Context path="" docBase="gedai" debug="1"/>
>> 		<Alias<<my.external.ip></Alias>
>> 		<Alias><my.network.internal.ip></Alias>
>>
>>
>> 	<Valve className="org.apache.catalina.valves.AccessLogValve"
>>                 directory="logs"  prefix="gedai_access_log."
>> suffix=".txt"
>>                 pattern="common" resolveHosts="false"/>
>> </Host>
>> [...]
>>
>> when i try to access to the IP, i've got an error 500 - no context
>> configured...
>>
>> what did i do wrong??
>>
>> supareno
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>     
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: config problem

Posted by Eric Gichuhi <Er...@kemri-ucsf.org>.
Assuming you are running private IP's in your internal network and a
public IP on the external network, you can create a  dns such as
mynetwork.mydomain.com which will resolve to the private IP when accessed
inside the network and public IP when accessed externally. use this name
as the hostname in server.xml 

Eric
-----Original Message-----
From: reno.rkcrew@free.fr
To: Tomcat Users List <us...@tomcat.apache.org>
Date: Wed, 27 Aug 2008 11:20:07 +0200
Subject: config problem

> hello,
> 
> we are facing a problem!
> config:
> jdk 1.4
> tomcat 4
> 
> the server is configured to be accessed by an network internal IP
> but it is not working with an external IP . i did the config in the
> server.xml
> but it is not working
> 
> [...]
> <Host name="<my.network.internal.ip>" debug="0"
> appBase="/usr/tomcat/webapps"
>        unpackWARs="true" autoDeploy="true">
>               <Context path="" docBase="gedai" debug="1"/>
> 		<Alias<<my.external.ip></Alias>
> 		<Alias><my.network.internal.ip></Alias>
> 
> 
> 	<Valve className="org.apache.catalina.valves.AccessLogValve"
>                 directory="logs"  prefix="gedai_access_log."
> suffix=".txt"
>                 pattern="common" resolveHosts="false"/>
> </Host>
> [...]
> 
> when i try to access to the IP, i've got an error 500 - no context
> configured...
> 
> what did i do wrong??
> 
> supareno
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org