Bug #17215
closedPort number in lockSSL redirect is not configurable
0%
Description
Shared hosting environments often have limited ip addresses and name based virtual hosting is not an option for HTTPS webs.
Securing multiple TYPO3 webs (e.g. BE access) with SSL in virtual hosting environments with limited ip addresses is only possible using different HTTPS ports.
But the lockSSL option itself does only a redirect from http://{$url} to https://{$url} , which doesn't allow to change the port during redirect.
It would be nice to add a feature to configure the port in a configuration option like ($TYPO3_CONF_VARS['BE']['lockSSLPort'] and to append / exchange it in the hostname part of the url.
(issue imported from #M5442)
Files
Updated by Benni Mack almost 17 years ago
Hey Christopher,
can you provide a patch for this?
Updated by Christopher Hlubek almost 17 years ago
Hi Benjamin,
I provided a patch with a quick fix for this issue. The code is straight forward and somehow duplicate.
Updated by Benni Mack almost 17 years ago
Hey Christopher.
Looks quite good. But please don't do a (if ? then : else) over multiple lines. Either put in one line or do a
if () {
then
} else {
...
}
Otherwise, I think you can submit this one to the core list.
http://typo3.org/teams/core/core-mailinglist-rules/
Updated by Christopher Hlubek almost 17 years ago
Hi Benjamin,
the short if statement is fixed in the 2nd patch. I will submit it to the core list today.