#1  
Old 11th October 2010, 15:32
donix donix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default Redirect from http to https

Hello, I got a debian ISPConfig 3 server with atmailopen webmail installed. I made an alias in apache2 for the webmail. That means the webmail is accessible from https://hostname.tld:8080/webmail.

When you try to access on http://hostname.tld:8080/webmail it returns a 400 Bad Request:
Code:
Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Is it possible to configure apache to automatically redirect to the https?
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2010, 15:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Yous hosuld not access webmail trough port 8080 as this might cause problems as you run webmail in the same security context as ispconfig then. use e.g. the ip address or the hostname of your server on port 90 or 443.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th October 2010, 14:41
donix donix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

hmm. okay. Can you outline how to config apache if I want my webmail to be accessible from eg https://hostname.tld:90/webmail

The important thing is, that I want to serve the webmail on https.
Reply With Quote
  #4  
Old 14th October 2010, 17:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

You can do this with mod_rewrite: http://httpd.apache.org/docs/2.0/rew...ite_guide.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
donix (22nd October 2010)
Reply

Bookmarks

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
Redirect HTTPS to HTTP Jürgen Installation/Configuration 4 13th March 2012 19:47
http redirect to https derfy Feature Requests 2 24th June 2006 22:04
redirect HTTP to HTTPS and reverse zone todvard Installation/Configuration 1 11th March 2006 11:45
redirect an application (egroupware) from http to https blackflag Installation/Configuration 13 21st February 2006 22:44


All times are GMT +2. The time now is 14:25.


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