-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$config['force_uri'] = "domain.com"; #5511
Labels
Milestone
Comments
I'd rather extend meaning of force_https, so it can contain host:port value. Patches welcome. |
Added host support for $force_https configuration option to redirect to a specified domain. |
alecpl
added a commit
that referenced
this issue
Nov 20, 2016
Thanks. I modified the code slightly. |
ZiBiS
added a commit
to ZiBiS/roundcubemail
that referenced
this issue
Nov 23, 2016
* 'master' of https://github.com/roundcube/roundcubemail: (31 commits) Fix write_log() return value when using syslog() and it fails Fix alignment of error icon Fix _from argument validation A better alignment/positioning of icons on widescreen list Update changelog Revert some style changes to correctly position status icon in threaded messages view of widescreen mode Always send columns list as array (unsetting items makes it an object with numeric keys) Adjust sizes and spacings in new 3-column layout Support hostname and hostname:port in force_https option (roundcube#5511) Fix displaying attached images with wrong Content-Type specified (roundcube#5527) Fix missing content check when image resize fails on attachment thumbnail generation (roundcube#5485) Make sure $prefs property is an array (roundcube#5523) Fix storing "empty" values in rcube_cache/rcube_cache_shared (roundcube#5519) replace old trac links (roundcube#5514) Enigma: Don't log bad-passphrase errors Require Crypt_GPG 1.6.0 Update README with some GnuPG 2.1 support info GnuPG 2.1: Fix secret keys export write_record() should return boolean value Code simplification ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It'd be great to have an ability to set domain which roundcube should redirect to. When having a global alias in apache configuration, it's not possible to do that without changing apache config or RoundCube .htaccess. A simple configuration option:
$config['force_uri'] = 'domain.com';
Would solve it.
Change to index.php:
Find:
$host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']);
Replace with:
$host = preg_replace('/:[0-9]+$/', '', $RCMAIL->config->get('force_uri', $_SERVER['HTTP_HOST']));
The text was updated successfully, but these errors were encountered: