Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th March 2013, 06:03
danhansen@denmark danhansen@denmark is offline
Senior Member
 
Join Date: Mar 2013
Posts: 249
Thanks: 53
Thanked 4 Times in 4 Posts
Default 400 Bad Request - The Perfekt Server - ISPConfig3 - Ubuntu10.04

Hi everyone,

After following tutorial The Perfect Server - ISPConfig3 - Ubuntu10.04 I tried to test the ControlPanel by typing http://myipaddress:8080 as suggested.This command from the tutorial was entered: http://192.168.0.100:8080/ (with my own IP of course)
This is what appears on the screen:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://webserver1.mydomain.tld:8080/"><b>https://mydomain.tld.dk:8080/</b></a></blockquote></p>
</body></html>

Accessing PhpMyAdmin went a lot better! This works just fine.

In the end of the installation of ISPConfig3 there was a question regarding SSL and secure something.. There was no example of what to answer in the tutorial so I just choosed the default answer. Is this where I got it wrong?

Please help me - looking forward to your response

Kind Regards
DanHansen@Denmark

Last edited by danhansen@denmark; 17th March 2013 at 06:19. Reason: Adding info and correcting an error
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2013, 13:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Please use HTTPS.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
danhansen@denmark (17th March 2013)
  #3  
Old 17th March 2013, 16:29
danhansen@denmark danhansen@denmark is offline
Senior Member
 
Join Date: Mar 2013
Posts: 249
Thanks: 53
Thanked 4 Times in 4 Posts
Default http or https - the usual way? + "This Connection is Untrusted"

Hi Falko,

Thanks a lot for your response

Will you please specify why this is? I really want to understand this. Below I have inserted some of the warnings that was shown when I entered the site using "https". The reason I an sking is because the example in the tutorial was "http". I get that this is a secure connection, but did I choose anything "wrong" during the setup? Or is it because there are more than one way to do it? As mentioned earlier on, there was a few question regarding, not the private key 'smtpd.key, but another key where the same info has to be filled in. I do not remember the name of that key. rsa something??? I am not sure. But it was right after filling in info for the private key 'smtpd.key.

This Connection is Untrusted
You have asked Firefox to connect
securely to 192.168.1.200:8080, but we can't confirm that your connection is secure.


and after accepting this all kind of warnings regarding missing certificate, Using the "view certificate" option, I saw information entered by myself and therefore this is ok I guess... But did I choose something wrong in the setup? Is "https" to usual way to enter the ISPConfig3 controlpanel i wonder???

Again, thank you for helping - This is a great forum and I am looking forward using your services and software

Kind Regards,
DanHansen@Denmark
Reply With Quote
  #4  
Old 22nd March 2013, 04:00
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default

Hi Dan,

You haven't done anything wrong. The certificates created by ISPConfig are not signed by a certified Certificate Authority (CA). There are certain organizations who are approved to sign certificates, approved by the man... If you don't have a CA signed certificate, getting the warning is normal.

Check out the tutorial here to get an authorized CA certificate: http://www.howtoforge.com/securing-y...-from-startssl.

Good luck!
Darin
Reply With Quote
The Following User Says Thank You to darinpeterson For This Useful Post:
danhansen@denmark (22nd March 2013)
  #5  
Old 22nd March 2013, 21:06
danhansen@denmark danhansen@denmark is offline
Senior Member
 
Join Date: Mar 2013
Posts: 249
Thanks: 53
Thanked 4 Times in 4 Posts
Post It works! This is the default web page for this server. NOT on the outside!?!

Hi Darin,

Thanks for your response. Now I get it! As a matter of fact I once had a certificate from Verisign (I think that was their name) to a little thing I made for windows back in the days
And, thanks for the link, I will read it carefully and do just that!

But, being nice and clever at the same time costs So will you please look at this too?

The webserver runs in the local network. Doing this: 192.168.1.200 results in this:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.


Doing this: 192.168.1.200/webmail results in this:
SquirrelMail version 1.4.22
By the SquirrelMail Project Team
SquirrelMail Login
Name:
Password:


So, it runs locally - but I just can't get it to work from the outside. I've posted another thread in here regarding this, but maybe it is badly written since I've heard nothing yet. I think that is the case.
Domain works on outside nameserver, nameserver has A-record --> mystaticip --> router/firewall --> portforwarding 21, 22, 25, 53, 80, 110 and 8080(ispconfig) --> myserverip. I can reach ISPConfig from the outside doing a https on port 8080 but I can't reach the websites, not even the default website that works locally as shown above!?! I tried every combination to reach the websites: mystaticip, mystaticip:80, mydomain mydomain:80 I just keep getting the router/admin part! Can't reach the SqirrelMail webmail from the outside either, tried mystaticip/webmail, mystaticip:8081(from sqirrelmail/faq) mystaticip:8081/webmail etc. etc. All with both http/https! To me, being the novice that I am, it looks like the "catching-the-domain-client/user-and-direct-to-website" directory/docs doesn't work. In the old days I had a company hosting websites etc. But back the we had a ip-number for each website, and therefor it was pretty easy to setup. Just point it in the right direction in the nameserver A-record. Now I can't figure out how it works, and therefore my troubleshooting sucks! My other rather bad thread is this:
http://www.howtoforge.com/forums/showthread.php?t=61081

In this thread I found 1 error which has been fix'ed but it didn't change anything:
http://www.howtoforge.com/forums/sho...523#post294523

I just don't understand how it works. The missing link I call it: "Joe types www.mydomain.tld" --> nameserver --> mystaticip --> router/firewall --> portforwards 80 --> myserverip [missing link] --> mydomain/client /var/www/clients/client3/web1/web/
Symlinks? Virtual-stuff?

I totally get it if nobody can fix this - I tried for days now
But I am looking so much forward to any kind of response after 2 hours and 21 minutes of trying to explain somthing I don't get!

Kind Regards,
DanHansen@Denmark
Reply With Quote
  #6  
Old 23rd March 2013, 01:34
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default

Hi Dan,

I'm gonna make this quick, b/c I don't believe I'm going to try to answer your original question, b/c I don't understand IP and port forwarding at this time, so I'm not going to go down that road.

I have an old AMD server that I installed ISPConfig 3 on, and I left it DHCP. If you want to be seen by the outside world, I suggest you do the same. I don't run the server behind any firewall at all. I'm not recommending this to anyone, I am just telling you this, b/c I know it works and I don't want to deal with router problems. What I recommend is that you use DHCP, since you have a single server setup and everything is installed on that one server.

There is a company http://www.dnsexit.com/, that provides a DynamicDNS client, and I use this on one of my own home servers. Their service is free, and I give them kudos for that. They are a nice company. Here is a link to tell you about their DynamicDNS service: http://www.dnsexit.com/Direct.sv?cmd=3

If you want to reinstall everything, you can do an "ifconfig" after the initial install to find the IP provided by your ISP. This is the IP to use with dnsexit.com for the initial IP. Install the client, and when your IP changes, dnsexit.com will be updated with your new IP.

If you don't want to reinstall everything, change your /etc/network/interfaces and /etc/hosts back to DHCP.

Keep in mind that for every secure site you want to run on your server, you will need a unique IP to run it on. This can be an issue if you only have one IP and don't fully understand IP forwarding.

I hope this helps... Please let me know, if I can help further...

Regards,
Darin
Reply With Quote
The Following User Says Thank You to darinpeterson For This Useful Post:
danhansen@denmark (31st March 2013)
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
help cant access anything locally or from ip jimmie Installation/Configuration 14 5th March 2013 08:58
500 internal error after upgrade abintipl Installation/Configuration 9 18th July 2012 13:51
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 15:51
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 06:10.


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