Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Daniel Lawson
SSL Rewrite with Virtual Host
4. April 2012 10:51
Antwort

Daniel Lawson

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 19. Oktober 2010

Neue Beiträge

We are using Liferay 6.1

We are having an issue implementing a rewrite rule that properly direct all users to a secure connection (ie. HTTPS) for any of our Virtual Hosts.

We have put in place the appropriate rewrite rules into our web.config file in IIS and have tested them with the main domain and it works just fine, but the rewrite fails for any Virtual Hosts that we have setup.

Right now, when a user accesses http://ourdomain.com they see a 404 error. If they access it via https://ourdomain.com they see the site just fine. Any help or insight would be appreciated.

Thanks,
Dan
Brian Scott Schupbach
RE: SSL Rewrite with Virtual Host
8. Dezember 2012 07:53
Antwort

Brian Scott Schupbach

Rang: Expert

Nachrichten: 329

Eintrittsdatum: 23. Oktober 2008

Neue Beiträge

Check out this article to see how to redirect http to https in IIS with tomcat.

1.) Open IIS and right click on the website you wish to redirect to https and select “edit bindings”.

2.) Change the port number to an unused port. For example: 8888

3.) Go to the SSL settings of the site and select “require SSL”

4.) Create a brand new IIS website by right clicking on the root node and selecting New -> web site. Choose port 80

5.) In the new website find the http redirection module in the actions pane. Click the check box and type in the URL of your website using https.

article taken from here:

http://21visions.com/redirect-http-to-https-in-iis-7/