Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 16, 2012 4:10 am 
Offline
Senior Member

Joined: Wed Nov 16, 2011 8:15 am
Posts: 70
Hi,
I have ISPConfig running here using SSL, but using a different port to default. Everything is working, however I NEED to change the error message displayed when someone types http://mydomain.tld:ISPConfig_Port (instead of HTTPS:). Not looking for a redirect, legitimate users should be able to figure this out.

So my only problem is the error message contence shown below:
(I don't want my hostname (Not Subdomain) being displayed. And the suggested hint doesn't work either)

Code:
400 Bad Request (shows in browser's title bar)

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

    Hint: https://hostname.mydomain.tld:ISPConfig_Port/


For the life of me, I cannot find where this error text comes from. (I'm not that good with linux or the grep command, so I'm searching the net instead.) I've found a few places where error message texts are kept;
1) /var/www/vdomain/web/error, and
2) /usr/share/apache2/error


Any help please.

_________________
My VPS system:
(Ubuntu 14.04 LTS, Kernel 3.15.4-x86_64, Apache 2.4.7, MariaDB Server 5.5.40, MariaDB Client 5.5.41, PHP 5.5.9, ISPConfig 3.0.5.4p5, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, amavis, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)


Top
   
PostPosted: Mon Jul 16, 2012 7:25 am 
Offline
Senior Member

Joined: Wed Nov 16, 2011 8:15 am
Posts: 70
I've gone into the /etc/apache2/conf.d/localized-error-pages file and uncommented the whole section pertaining to custom error messages. After a restart, the error message has changed to the 'alternate' default. It seems to me the error message I've pasted in my OP is the default error 400 message built into Apache when it was compiled.

So, now that I've enabled customised error messages, I can change them in the /usr/share/apache2/error/ folder for the whole server and /var/www/[v-domain]/web/error for each virtual host [v-domain]

_________________
My VPS system:
(Ubuntu 14.04 LTS, Kernel 3.15.4-x86_64, Apache 2.4.7, MariaDB Server 5.5.40, MariaDB Client 5.5.41, PHP 5.5.9, ISPConfig 3.0.5.4p5, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, amavis, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group