Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Apache Errors

Odd Errors with HTTPS and NameVirtualHosts

7:22 pm on May 24, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 14, 2002
votes: 0

Hi I'm getting the following errors when trying to use HTTPS. Yes I have SSL started. I've tried doing this with "apachectl startssl" and with "httpd -DSSL". When I try to access HTTP on Port 43 it works fine, but if I use HTTPS on Port 443 it dies with the below errors. HTTP with port 80 works fine. So it seems HTTPS is trying to use HTTP.

I'm running Apache v1.3.29 using mod_rewrite, PHP and MySQL on OpenBSD v3.7 i386.

"\x80g\x01\x03" 501

Invalid method in request \\x80g\\x01\\x03

At startup of Apache I get a warning notice of "[warn] NameVirtualHost

:443 has no VirtualHosts".

I have two virtual hosts for port 80 based on IP to ServerName. I then have one virtual host for SSL port 443. I have "NameVirtualHost xxx.xxx.xxx.xxx:80" and
"NameVirtualHost xxx.xxx.xxx.xxx:443".

Any ideas or suggestions how to resolve these problems would be much appreciated.


10:04 pm on May 24, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0

The log entry appears to be unrelated to the VirtualHosts warning.

It simply shows somebody requesting a 'nonsense' URL from your site, and --we infer from the error message-- using an invalid HTTP method. Check your configuration files for constraints on HTTP methods; While you probably want to allow GET, HEAD, and POST, and possibly OPTIONS, PROPFIND, TRACE, and CONNECT, the request may have been made using a method you don't allow, such as PUT, DELETE, etc. The 501-Not Implemented response would be expected. See RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1 [w3.org]

The VirtualHosts warning points to a problem in the server configuration.