Setting up F3 behind a reverse proxy (url)

40 views
Skip to first unread message

Ikel

unread,
Feb 13, 2017, 4:11:27 PM2/13/17
to Fat-Free Framework
Hi,

I got a noob question, perhaps little relevance to F3 itself.
Please bear with me....

My server is simple.com on a private network (no SSL). It runs through a SSL-enabled reverse proxy securesimple.com

How should I configure F3 endpoints to be acessed via https://securesimple.com/logon  instead of http://simple.com/logon?

Thanks

 

bcosca

unread,
Feb 13, 2017, 4:20:35 PM2/13/17
to Fat-Free Framework
You can do this programmatically using F3, but the easier way is thru .htaccess:

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,NE,R=301]

Ikel

unread,
Feb 14, 2017, 10:42:03 PM2/14/17
to Fat-Free Framework
Simplest solution!
Reply all
Reply to author
Forward
0 new messages