iws6.1 http2https

hey all,

i create a server with listenport 10443. i add a certificate. all works fine.

now i want, that if a request http is coming, the request goes to https.

i add a seconde listenport 10080. i create a 2. virtual server.

Edit Listen Sockets:

ls1 10443 enable server1

ls2 10080 disable server2

Edit Virtual Servers:

i bind ls1 (port 10443) at virtual server1 and

i bind ls2 (port 10080) at virtual server1.

URL Forwarding:

Prefix: /*

To URL prefix: https://servername:10443/*

Prefix: /

To URL prefix: https://servername:10443

What is wrong? it doesn磘 works.

In the accesslog:

xx.xx.xx.xx - - [27/Feb/2007:14:34:36 +0100] "GET / HTTP/1.1" 302 0

xx.xx.xx.xx - - [27/Feb/2007:14:34:36 +0100] "GET / HTTP/1.1" 302 0

xx.xx.xx.xx - - [27/Feb/2007:14:34:36 +0100] "GET / HTTP/1.1" 302 0

xx.xx.xx.xx - - [27/Feb/2007:14:34:36 +0100] "GET / HTTP/1.1" 302 0

Thanks for help.

Chmeee-de

[1024 byte] By [Chmeee-dea] at [2007-11-26 19:49:00]
# 1

You configured the server to redirect requests for / to https://servername:10443/. This creates a redirect loop when you access https://servername:10443/. Instead, you could configure two separate virtual servers. The first virtual server could be associated with the non-SSL listen socket and be configured to do the URL forward. The second virtual server could be associated with the SSL listen socket and be configured to not do the URL forward.

elvinga at 2007-7-9 22:37:08 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Hi ,

This is can be done pretty easy from the GUI.

goto your instance from admin server

then to Class Manager

content manager

choose URL forwarding

in URL prefix: give /

then in forward requests

again choose URL prefix and add https://servername:10443 ( on which secure instance is running)

Now give http://servername:10080 in your browser; it should go to https://servername:10443

Joseph

activexperta at 2007-7-9 22:37:08 > top of Java-index,Web & Directory Servers,Web Servers...