Хочу сделать чтобы при запросе http://192.168.57.4 принудительно происходил редирект на https://192.168.57.4При подключении на 443 или на 80 - всё работает ок.
Подскажите плиз, куда копать!
# cat server.xml
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Apache">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80"
redirectPort="443"
minProcessors="5"
maxProcessors="75"
enableLookups="false"
acceptCount="100" debug="0"
useURIValidationHack="false"
disableUploadTimeout="true">
</Connector>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache"
defaultHost="localhost"
debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="tizona."
suffix=".log"
timestamp="true"/>
<Host name="192.168.57.4"
debug="3"
appBase="/usr/local/www"
autoDeploy="true">
<Context path=""
docBase="/usr/local/billing/www/admin"
debug="3"
reloadable="false" />
<Context path="/user"
docBase="/usr/local/billing/www/user"
debug="3"
reloadable="false" />
<Context path="/register"
docBase="/usr/local/billing/www/register"
debug="3"
reloadable="false" />
</Host>
</Engine>
</Service>
<Service name="Tomcat-Apache">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="443"
minProcessors="5"
maxProcessors="75"
enableLookups="false"
acceptCount="100"
debug="0"
scheme="https"
secure="true"
useURIValidationHack="false"
disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false"
protocol="TLS"
keystoreFile="/etc/.key_bill"
keystorePass="PASSWD"/>
</Connector>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache"
defaultHost="localhost"
debug="6">
<Host name="192.168.57.4"
debug="0"
appBase="/usr/local/www"
autoDeploy="true">
<Context path="" docBase="admin" debug="3" reloadable="false" />
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="server."
suffix=".log"
timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>