Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st January 2012, 00:00
platan platan is offline
Junior Member
 
Join Date: Oct 2008
Posts: 9
Thanks: 0
Thanked 4 Times in 2 Posts
Send a message via Skype™ to platan
Default Quiet redirection from http to https on port 8080

Ispconfig3
Apache
SSL on port 8080
Problem: Error 400: Bad Request - ... Hint: http://...:8080
when http access. Terrible!

A small trick will solve the problem.

In a file: /etc/httpd/conf/sites-available/ispconfig.vhost add error document line before </VirtualHost>:
Code:
  ...
  SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
  ErrorDocument 400 "<script>document.location.href='https://example.com:8080/';</script><a href='https://example.com:8080/'>https://example.com:8080/</a>"
  
</VirtualHost>
Attention:
  1. Hostname (example.com) must be hardcoded. %{HOST_NAME} or something does not work.
  2. You must reenter ErrorDocument every time, You update Ispconfig3 system.

Enjoy

Last edited by platan; 31st January 2012 at 00:10.
Reply With Quote
The Following 2 Users Say Thank You to platan For This Useful Post:
almere (18th March 2013), Quijote Shin (18th March 2013)
Sponsored Links
  #2  
Old 18th March 2013, 17:41
Quijote Shin Quijote Shin is offline
Junior Member
 
Join Date: Mar 2013
Posts: 12
Thanks: 5
Thanked 2 Times in 2 Posts
Send a message via Skype™ to Quijote Shin
 
Default

Simple and usefull!!
__________________
WYSIWYG:
What You See Is What You Get.

We say thanks to all our magical monkeys server-side, who makes this a reality.
oriongames.cl <<---- gamer, geek
orionhosts.cl <<---- geek
orionholding.cl <<--- [??]
All friends with nature, animal and human
Reply With Quote
Reply

Bookmarks

Tags
http to https redirection, https, ssl

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
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 16:08
strange fail2ban behaviour > doesn't ban specific IP Djamu Server Operation 2 13th January 2012 03:29
Mail Question: installed smf forum on centos perfect server setup with ispconfig happz Installation/Configuration 7 22nd August 2008 14:15
http to https redirection for port 81 - ISPConfig TheMaximumWeasel Installation/Configuration 6 31st May 2007 00:30
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40


All times are GMT +2. The time now is 09:34.


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