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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th July 2010, 08:06
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default Allow only https://... :443?

My RoundCube webmail site site is (at last) configured for ssl, but it still also responds to normal http web requests on port 80. How can I instead allow only https on 443 ?

I'd like to enforce https for webmail access.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 30th July 2010, 08:10
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default

remove port 980 from the ports.conf (I think) and from the vhost
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #3  
Old 30th July 2010, 08:24
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default

I believe that removing port 80 from /etc/apache2/ports.conf will disable port 80 globally. There are a bunch of other sites under ispconfig that use 80.

However, experimentally I removed the <VirtualHost > ... </VirtualHost> declaration for this site on port 80 from Vhosts_ispconfig.conf, and it seems to work.

I'll update if there's a problem.
Reply With Quote
  #4  
Old 30th July 2010, 09:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

This will not work as the Vhost declaration gets added automatically again. The solution is to forward non https connections to https:

http://www.faqforge.com/linux/contro...che-webserver/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
DrJohn (31st July 2010)
  #5  
Old 31st July 2010, 05:01
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
 
Default

Thank you again Till,

That solution works very well. I restored the original Vhosts file then added the rewrite directive in your link into ispconfig's Apache2 directive for the site.

Now, sending the http address comes back as https, and only for this site. Very nice.

-- John
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
New Install mod_ssl won't listen on port 443 dpicella Installation/Configuration 7 29th April 2009 03:26
squid port 443 problem. abid HOWTO-Related Questions 1 26th March 2009 18:08
changing from 81 to 443 id10t Installation/Configuration 2 19th November 2008 16:36
ISPConfig on Port 443 Issue adm-computers Installation/Configuration 3 6th May 2008 11:02
redirecting 80 to 443 gabriele Server Operation 1 16th May 2006 17:26


All times are GMT +2. The time now is 19:49.


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