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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th August 2011, 23:49
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default Force http to https for the admin panel

Hello,

I use SSL to connect to the admin panel, it works well. ---> Https://domain.tld:50443 or https://IP:50443

But if I log into http (without the s), I get a bad request (of course )

How can I force the connection via SSL, but only for the panel and not the whole website

I can do to phpmyadmin and roundcube, but not for the panel

Thanks
__________________
French webmaster
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2011, 16:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Should be possible to do this with mod_rewrite: http://httpd.apache.org/docs/2.0/misc/rewriteguide.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
  #3  
Old 22nd August 2011, 23:17
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Yes, I know this

I tried this (in ispconfig.vhost)

Code:
<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location />
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteCond %{SERVER_PORT}  ^50443$
      RewriteRule . https://%{HTTP_HOST}:50443%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>
but it doesn't work

An idea ?
__________________
French webmaster
Reply With Quote
  #4  
Old 23rd August 2011, 11:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Can you try these links?

http://www.whoopis.com/howtos/apache-rewrite.html
http://www.cyberciti.biz/tips/howto-...nnections.html
http://www.besthostratings.com/artic...-htaccess.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
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
Is ISPConf Admin panel brute force attack safe? Bashewa General 6 16th July 2011 14:49
HowTo Change ISPConfig Panel From https to http kextra1 Installation/Configuration 4 28th May 2010 15:28
Change admin login from http to https ndrwld Installation/Configuration 1 18th February 2010 20:09
ICPConfig admin page change from https to http Dizfunkshunal Installation/Configuration 1 1st January 2008 17:14


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


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