Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 19th March 2010, 11:40
neutrino neutrino is offline
Join Date: Oct 2008
Posts: 61
Thanks: 13
Thanked 9 Times in 8 Posts
Lightbulb http to https redirection


I'm currently trying to redirect the url http://mail.server.com to https://mail.server.com

I've tried all the options in ISPCONFIG (no flag, R, L, RL) and none off them actually work, Firefox / IE / Opera, there is no browser that accepts the rewrite rule.

The code produced by ispconfig is the next one :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mail.server.com [NC]
RewriteRule ^/(.*)$ https://mail.server.com/$1 [R,L]

What I want to do, is to replace the ISPconfig code with something that works like :

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Problem is, each time I'll perform a change on the site, my code will be erased by the standard ispconfig code.

How can I change this ? I suppose I have to change some master code of ISPconfig, but I don't really like that idea, because it always causes trouble when updating to a new version.

Can a fix be expected in a future version of ISPconfig maybe ?
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig: from http to https & from https to http Hans Tips/Tricks/Mods 13 13th March 2013 00:22
change from http to https meth Installation/Configuration 1 5th October 2009 17:44
Can ISPConfig listen on http & https? spidie Installation/Configuration 2 31st July 2007 03:53
http to https redirection for port 81 - ISPConfig TheMaximumWeasel Installation/Configuration 6 31st May 2007 00:30
http redirect to https derfy Feature Requests 2 24th June 2006 22:04

All times are GMT +2. The time now is 02:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.