Author |
|
mnutsch
Joined: 02 Apr 2011 Posts: 5 Location: Tacoma, WA
|
Posted: Sat 02 Apr '11 23:27 Post subject: HTTPS works but not HTTP. Help! |
|
|
I'm setting up my own server for the first time. The server is Apache 2.2, with PHP and MySQL enabled. The OS running is Windows XP.
I have installed a SSL cert and enabled SSL in httpd.conf and httpd-ssl.conf.
My problem is that when accessing the site from a remote computer, only the HTTPS version with connect. A HTTP connection cannot find the page.
However when I connect through the internet browser on the server machine, I can connect to both HTTP and HTTPS without any problem.
What am I doing wrong?
Thanks,
mnutsch |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 03 Apr '11 1:02 Post subject: |
|
|
Sounds like the firwall in Windows is getting in the way. On server machine check the firewall exceptions & make sure port 80 is open. If that still doesn't work, next is to add Apache as a program in the exceptions, that usually gets it right. |
|
Back to top |
|
mnutsch
Joined: 02 Apr 2011 Posts: 5 Location: Tacoma, WA
|
Posted: Sun 03 Apr '11 6:15 Post subject: |
|
|
Thanks for the suggestion, but that did not appear to be it. I have Apache added as an exception to the firewall. I also have exceptions added for ports 80 and 443.
I tried turning off my firewall temporarily. While it was off the problem did not change. I could connect to both the http and https versions of the site from the server machine, but from a different machine I could only connect to the https version. |
|
Back to top |
|
mnutsch
Joined: 02 Apr 2011 Posts: 5 Location: Tacoma, WA
|
Posted: Sun 03 Apr '11 16:18 Post subject: |
|
|
Here is my error log:
[Sun Apr 03 07:00:26 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Apr 03 07:00:27 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:00:28 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.5 configured -- resuming normal operations
[Sun Apr 03 07:00:28 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Apr 03 07:00:28 2011] [notice] Parent: Created child process 5284
[Sun Apr 03 07:00:28 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:00:28 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Apr 03 07:00:29 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:00:30 2011] [notice] Child 5284: Child process is running
[Sun Apr 03 07:00:30 2011] [notice] Child 5284: Acquired the start mutex.
[Sun Apr 03 07:00:30 2011] [notice] Child 5284: Starting 64 worker threads.
[Sun Apr 03 07:00:30 2011] [notice] Child 5284: Starting thread to listen on port 80.
[Sun Apr 03 07:04:42 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Apr 03 07:04:42 2011] [notice] Child 5284: Exit event signaled. Child process is ending.
[Sun Apr 03 07:04:43 2011] [notice] Child 5284: Released the start mutex
[Sun Apr 03 07:04:44 2011] [notice] Child 5284: All worker threads have exited.
[Sun Apr 03 07:04:44 2011] [notice] Child 5284: Child process is exiting
[Sun Apr 03 07:04:44 2011] [notice] Parent: Child process exited successfully.
[Sun Apr 03 07:04:46 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:04:47 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.5 configured -- resuming normal operations
[Sun Apr 03 07:04:47 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Apr 03 07:04:47 2011] [notice] Parent: Created child process 1320
[Sun Apr 03 07:04:48 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:04:48 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:04:49 2011] [notice] Child 1320: Child process is running
[Sun Apr 03 07:04:49 2011] [notice] Child 1320: Acquired the start mutex.
[Sun Apr 03 07:04:49 2011] [notice] Child 1320: Starting 64 worker threads.
[Sun Apr 03 07:04:49 2011] [notice] Child 1320: Starting thread to listen on port 80.
[Sun Apr 03 07:04:49 2011] [notice] Child 1320: Starting thread to listen on port 443.
[Sun Apr 03 07:07:23 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Apr 03 07:07:23 2011] [notice] Child 1320: Exit event signaled. Child process is ending.
[Sun Apr 03 07:07:24 2011] [notice] Child 1320: Released the start mutex
[Sun Apr 03 07:07:25 2011] [notice] Child 1320: All worker threads have exited.
[Sun Apr 03 07:07:25 2011] [notice] Child 1320: Child process is exiting
[Sun Apr 03 07:07:25 2011] [notice] Parent: Child process exited successfully.
[Sun Apr 03 07:07:29 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:07:30 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.5 configured -- resuming normal operations
[Sun Apr 03 07:07:30 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Apr 03 07:07:30 2011] [notice] Parent: Created child process 4276
[Sun Apr 03 07:07:30 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:07:31 2011] [error] (OS 11001)No such host is known. : Could not resolve host name *.80 -- ignoring!
[Sun Apr 03 07:07:32 2011] [notice] Child 4276: Child process is running
[Sun Apr 03 07:07:32 2011] [notice] Child 4276: Acquired the start mutex.
[Sun Apr 03 07:07:32 2011] [notice] Child 4276: Starting 64 worker threads.
[Sun Apr 03 07:07:32 2011] [notice] Child 4276: Starting thread to listen on port 80.
[Sun Apr 03 07:07:32 2011] [notice] Child 4276: Starting thread to listen on port 443. |
|
Back to top |
|
Virsacer

Joined: 16 Jan 2010 Posts: 108 Location: Germany, Darmstadt
|
Posted: Sun 03 Apr '11 16:42 Post subject: |
|
|
Apparently you have a "*.80" instead of "*:80" in your config file... |
|
Back to top |
|
mnutsch
Joined: 02 Apr 2011 Posts: 5 Location: Tacoma, WA
|
Posted: Sun 03 Apr '11 22:56 Post subject: |
|
|
Thanks for explaining that Virsacer. I fixed this line in my http-vhosts.conf file:
from
NameVirtualHost *.80
to
NameVirtualHost *:80
That error message doesn't appear in the log now when I restart the server.
*EDIT*
The original problem still remains. I studied the issue further and found that any type of browser or device can connect fine if it is connected to the same local wifi network/internet connection as the server. However all devices/browsers cannot connect to the site if it is a remote connection.
I now suspect that this is an issue with the port forwarding of my wireless router. For some reason port 443 (HTTPS) forwards fine, but port 80 (HTTP) doesn't appear to do so. |
|
Back to top |
|
mnutsch
Joined: 02 Apr 2011 Posts: 5 Location: Tacoma, WA
|
Posted: Wed 06 Apr '11 5:35 Post subject: |
|
|
FYI - The conclusion I reached on this problem is that my Internet Service Provider blocks port 80. |
|
Back to top |
|