Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th May 2007, 13:05
TheMaximumWeasel TheMaximumWeasel is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default http to https redirection for port 81 - ISPConfig

I chose https in the ispconfig installation and I know in normal apache it is possible to make apache automatically redirect to https but I dont know how to do it for apache that is being used my ispconfig.

Basically when someone connects to my server over port 81 not only do I want it to switch to https I want it to go to my domain so the SSL certificate matches up.

Max
Reply With Quote
Sponsored Links
  #2  
Old 28th May 2007, 14:44
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

The ISPConfg apache is a normal apache. The config file is in /root/ispconfig/httpd/conf/httpd.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th May 2007, 02:46
TheMaximumWeasel TheMaximumWeasel is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how would I make a virtual host that will redirect? because normally I have a virtual host sit on port 80 and redirect to https which is 443. but on port 81 because http and https are on the same port it redirects over and over because the virtual host is called even in https.

Max
Reply With Quote
  #4  
Old 29th May 2007, 15:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You can either use http or https on port 81, but not both at the same time.
__________________
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
  #5  
Old 30th May 2007, 01:11
TheMaximumWeasel TheMaximumWeasel is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have it set to https. So when someone goes to http://mydomain.com and they get that bad request thing how can I have that automatically take whats after the url and switch it to https. For example if someone goes to http://maxweisel.com:81/webmail it will change to https://maxweisel.com:81/webmail. Also if someone goes to http://myotherdomain.com:81/webmail it will redirect to https://maxweisel.com:81/webmail.

the reason I have for keeping the domain maxweisel.com is to keep the message saying the domain in the certificate doesnt match the domain from coming up.

Max
Reply With Quote
  #6  
Old 30th May 2007, 17:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by TheMaximumWeasel
I have it set to https. So when someone goes to http://mydomain.com and they get that bad request thing how can I have that automatically take whats after the url and switch it to https. For example if someone goes to http://maxweisel.com:81/webmail it will change to https://maxweisel.com:81/webmail. Also if someone goes to http://myotherdomain.com:81/webmail it will redirect to https://maxweisel.com:81/webmail.
That's not possible.
__________________
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
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
Changing ISPConfig from https to http wr19026 Installation/Configuration 8 31st July 2007 15:03
Ispconfig From Https To Http djida General 4 28th May 2007 14:04
Change ISPConfig from http to https... yurtboy Installation/Configuration 1 29th January 2007 08:58
ISPConfig - From HTTPS to HTTP Hans Installation/Configuration 4 13th February 2006 20:27


All times are GMT +2. The time now is 04:52.


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