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 13th July 2006, 15:49
letic letic is offline
HowtoForge Supporter
 
Join Date: Jul 2006
Posts: 28
Thanks: 10
Thanked 3 Times in 3 Posts
Default SSL Only site (disable HTTP access)

Hi there,

I was wondering is there was a way to modify ISPConfig site configuration to allow only SSL access.

I configured SSL with no problem but I would like to disable access on the port 80 for this particular site.

At the moment I use iptables rules to do this but I just wanted to know if there was an easy way to do it in ISPConfig

Thanks in advance
LeTic
Reply With Quote
Sponsored Links
  #2  
Old 14th July 2006, 02:29
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

No 100% solution but you can setup a small php header to redirect them on immediate browse.. ie.

PHP Code:
<?php

header
("Location: https://yoursite.com");

?>
Reply With Quote
  #3  
Old 14th July 2006, 11:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Have a look here: http://www-1.ibm.com/support/docview...id=swg21114864
http://www.whoopis.com/howtos/apache-rewrite.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
  #4  
Old 20th July 2006, 12:17
letic letic is offline
HowtoForge Supporter
 
Join Date: Jul 2006
Posts: 28
Thanks: 10
Thanked 3 Times in 3 Posts
Default

Sorry lads I didn't see your answers before but the subscribtion option in the forum are set to not subscribe to the post you start or answer by default.

Thanks both solution you gave are working fine but I went for Falko's

I knew about the Rewrite Engine but only used it in the .htaccess to change destination I didn't know you could use it with the port and so have the redirect, shame on me

Thanks Falko for the answer and if it can be of any help to somenone else I added these rules :
Code:
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
To the Apache directives in ISP config.

Thanks for the answers
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
cannot access ispconfig site Nu2Linux Installation/Configuration 13 3rd January 2009 15:29
How to access my websites from intranet n1kol1s General 23 1st July 2006 13:01
Preventing http access by IP address trigar Installation/Configuration 10 7th June 2006 14:30
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
No login access by http or https onoxsis Installation/Configuration 9 24th October 2005 11:13


All times are GMT +2. The time now is 16:20.


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