Hi Jonas,
Thanks for your reply. I did implement HTTPS successfully. One issue I'm having is that if you just go to my domain (w/ no absolute path specified), it always defaults to HTTPS. For instance, if I type http://www.mydomain.com, it'll forward to https://www.mydomain.com/web/guest page. If I type in the full path, ie http://www.mydomain.com/web/guest it'll stay w/ HTTP. I suspect though that this is more of an issue w/ the VirtualHost setup in Apache and I'm not too concerned with that.
I guess the problem specificially w/ Google Maps is not that it won't work, its that Internet Explorer will give that warning about loading unsecured content over a secured connection, which is quite annoying. I know this isn't necessarily a LifeRay issue, its IE being "careful."
One way I thought of "fixing" this issue is to only have the login page w/ HTTPS and the rest of the site navigated with HTTP. Are there issues with doing that? I've read some postings about how its a bit painful w/ sessions and such. I've tried to do that but get problesm logging in. There are settings I configured in portal-ext.properties file, and unless I specify that the site protocol be HTTPS, I can't login. If I could login, this would actually be the behavior I want - the site is navigated w/ HTTP, when you log in, its HTTPS, then you are back to HTTP. BUt when I do that, even though the log in succeeds, the site seems to lose the session and acts like I didn't log in (after redirection from a successful login).
Does that make sense? Basically, I would like my site to use HTTPS only for login, then HTTP the rest of the time, even after a user has logged in.
Thanks!
PS:
Here are the settings I'm talking about in portal-ext.properties:
1company.security.auth.requires.https=true
2web.server.http.port=80
3web.server.https.port=443
4web.server.protocol=https
If I leave out the web.server.* properties (and only have the company.security.auth.requires.https=true) line, the site will be served up with HTTP until user goes to login... Then its HTTPS. After login, the user is redirected to a page w/ HTTP, which is what I'd like to have happen, BUT the user isn't logged in. When I add the web.server.* properties, it all works properly, except now the whole site is always HTTPS. Just wondering if its possible to have it such that only login is HTTPS, and rest of the site is HTTP. Or better yet, even just specify certain pages/urls as HTTPS. For instance, if you were running an eCommerce site, you wouldn't necessarily want the whole site HTTPS, perhaps just the purchasing piece of it.
Jonas Yuan:
Hi Rice,
Liferay portal supports both HTTP and HTTPS.
You may simply set both HTTP and HTTPS on your Liferay portal. Enjoy!
From Liferay portal either HTTP or HTTPS, you can call other systems via HTTP like Google map directly. There should not be an issue.
By the way, your server should install SSL - otherwise it would show that untrusted issue.
Hope that it helps,
Thanks
Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems DevelopmentLiferay Portal Enterprise Intranets Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.