[Solved] The "https://mywebsite.com:10000" is working. But "http://mywebsite.com:80" is not working. It says "Could Not Connect"

4 posts / 0 new
Last post
#1 Fri, 05/20/2016 - 04:35
sahibvirk

[Solved] The "https://mywebsite.com:10000" is working. But "http://mywebsite.com:80" is not working. It says "Could Not Connect"

Hi! Am new to Virtualin. This is my first post on this forum. Tried installing Virtualmin with various combinations of Operating Systems on DigitalOcean Droplets. Finally the one with Ubuntu 12.4 worked after trying hard for 2 days.

I installed Virtualmin. Went through the initial setup wizard. Tested that setup is OK for Virtualmin to run. Created a Virtual Server. Installed the phpmyadmin and Roundcube scripts.

Uploaded an index.html file to the public_html folder of that virtual machines admin in /home/adminname/public_html/index.html.

The important thing that I must mention here is that the hostname of my Ubuntu Server and the domain-name of the Virtual Server are same. I did this because something somewhere (i dont remember where) was asking for a FQDN as the hostname.

Now when I visit "https://mywebsite.com:10000", then everything works fine of course (That is how did everything on Virtualmin).

But when I visit "http://mywebsite.com" or "https://mywebsite.com", then i get a message on the browser page that says the following:- "Could Not Connect Description: Could not connect to the requested server host."

Now please help me feel that my 2 days did not completely go to waste. Sorry, for being so amateur at this thing.

Am looking forward to your support. Thanks in advance people.

Fri, 05/20/2016 - 04:52
coderinthebox

FAQDN can be changed anytime, do you have a working domain connected to your droplet?

Visit me at coderinthebox.com

Fri, 05/20/2016 - 06:42
sahibvirk

@ Permalink
Yes I have a working domain connected to the droplet. It is delhidevelopermail.com

Sorry I just notices something that I should have noticed earlier. I just saw that apache had not started. I tried to start it from the Virtualmin home screen. But then this error appeared:-
"
* Starting web server apache2
Action 'start' failed.
The Apache error log may have more information.
...fail!
"

I checked /var/log/apache2/error.log and this is what I found there:-

[Thu May 19 09:31:46 2016] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Thu May 19 09:32:47 2016] [notice] Graceful restart requested, doing restart
[Thu May 19 09:32:47 2016] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Thu May 19 09:33:08 2016] [notice] caught SIGTERM, shutting down
[Thu May 19 09:33:10 2016] [notice] Apache/2.2.22 (Ubuntu) mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:33:10 2016] [notice] caught SIGTERM, shutting down
[y 19 09:31:46 2016] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Thu May 19 09:32:47 2016] [notice] Graceful restart requested, doing restart
[Thu May 19 09:32:47 2016] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Thu May 19 09:33:08 2016] [notice] caught SIGTERM, shutting down
[Thu May 19 09:33:10 2016] [notice] Apache/2.2.22 (Ubuntu) mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:33:10 2016] [notice] caught SIGTERM, shutting down
[Thu May 19 09:33:11 2016] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:34:03 2016] [notice] Graceful restart requested, doing restart
[Thu May 19 09:34:03 2016] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:35:10 2016] [notice] caught SIGTERM, shutting down
[Thu May 19 09:35:11 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu May 19 09:35:12 2016] [notice] Digest: generating secret for digest authentication ...
[Thu May 19 09:35:12 2016] [notice] Digest: done
Thu May 19 09:33:11 2016] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:34:03 2016] [notice] Graceful restart requested, doing restart
[Thu May 19 09:34:03 2016] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch configured -- resuming normal operations
[Thu May 19 09:35:10 2016] [notice] caught SIGTERM, shutting down
[Thu May 19 09:35:11 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu May 19 09:35:12 2016] [notice] Digest: generating secret for digest authentication ...
[Thu May 19 09:35:12 2016] [notice] Digest: done
[Thu May 19 09:35:12 2016] [notice] Apache/2.2.22 (Ubuntu) DAV/2 SVN/1.6.17 mod_fcgid/2.3.6 PHP/5.3.10-1ubuntu3.22 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations
[Thu May 19 09:58:06 2016] [notice] Graceful restart requested, doing restart
[Thu May 19 09:58:07 2016] [notice] Digest: generating secret for digest authentication ...
[Thu May 19 09:58:07 2016] [notice] Digest: done

Fri, 05/20/2016 - 06:54
sahibvirk

I just saw this post:-
https://www.virtualmin.com/node/35601

And then realized that I had activated the SSL feature in the Virtual Server while I had no SSL certificates installed. I disabled the SSL website feature in the Virtual server and voila the test page I uploaded actually worked.

I thought that untill I dont have the SSL certificate the website will still work but of course with a SSL warning in my browser But that wasn't the case.

Please consider the problem solved.

Thank you for your help.

Will explore Virtualmin even further now.

Topic locked