[Flow] ssl proxy and TYPO3 Flow
Kay Strobach
typo3 at kay-strobach.de
Sat Nov 30 14:32:00 CET 2013
Hello Martin,
i think there is an option, where you can specify the base uri for the
f:base viewHelper. If this is fixed your App should work fine.
The uri is requested via:
$this->controllerContext->getRequest()->getHttpRequest()->getBaseUri()
which used detectBaseUri from TYPO3\Flow\Http\Request
-> So you can use AOP to wrap around and fix the output (this way you
won't need to change your app, and you can package the SSL Proxy support
in a freely shipable FLOW package).
This should be pretty easy :D
Regards
Kay
Am 25.11.13 17:13, schrieb Martin Keck:
> Hi all,
>
> has anyone of you ever run a TYPO3 Flow application via an SSL proxy, which some hosters provide (instead of using a "full grown" SSL certificate).
>
> The use case is a short running Facebook app, where a SSL connection is mandatory.
> E. g.:
> If the insecure URL would look like this: http://some-url.de/
> The SSL Proxy would look like this: https://ssl.webpack.de/some-url.de/
>
> Now calling the Flow welcome package under some-url.de works perfectly. Calling the SSL proxy results in security errors in the browser, as the page tries to load the Styles.css etc. from the insecure URL (e.g. http://some-url.de/_Resources/Static/Packages/TYPO3.Welcome/Styles/Styles.css), which means the layout gets messed up and no JS is working.
>
> Setting the baseUri in Settings.yaml to the ssl proxy url (baseUri: https://ssl.webpack.de/some-url.de/) doesn't work either, as this results in an infinite redirection loop.
>
> Any idea how to solve this?
>
> Thanks + regards
> Martin
>
>
>
>
> Bloom ist Branchensieger im „Jahr der Werbung" 2013. In der Kategorie
> „Alkoholische Getränke“ (B2C) landete Bloom auf dem ersten Platz. Alle Infos
> auf http://www.bloomproject.de/arbeiten/show/lederer-markenpositionierung/
>
--
http://www.kay-strobach.de - Open Source Rocks
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Answer was useful - feel free to donate:
-
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
- https://flattr.com/profile/kaystrobach
More information about the Flow
mailing list