tomcat7 - how to properly avail a merely webpage from Tomcat outside the network -
i have rhel 6.8 server machine in cloud , want access webpage same cloud machine's ip. made tomcat 7.0.79 setup in machine , problem can access machine through putty only, terminal available check on machine. did bind tomcat machine's private ip(local ip), , trying access means of it's public ip outside network not accessing. java installed , java_home environmental variable configured.
since can't check through browser, i'm using "curl" command accessing both private , public ips displaying:
curl: (7) couldn't connect host
please check below changes made in order bind tomcat local ip , suggest me solution:
i have modified {tomcat_directory}/bin/server.xml :
<connector port="80" protocol="http/1.1" connectiontimeout="20000" redirectport="8443" address="192.168.43.50" /> <engine name="catalina" defaulthost="192.168.43.50"> <host name="192.168.43.50" ....
created {tomcat_directory}/bin/setenv.sh , added below text:
java_opts="$java_opts -djava.net.preferipv4stack=true -djava.net.preferipv4addresses=true "
modified {tomcat_directory}/webapps/manager/meta-inf/context.xml :
<valve classname="org.apache.catalina.valves.remoteaddrvalve" allow="192.168.43.50" />
how allow access ip address above valve tag? please check , find if i'm missing avail manager webapp public access?
Comments
Post a Comment