Apache2 just listening to https?

Roger Grosswiler roger at gwch.net
Thu Jul 28 11:35:19 GMT 2005


> On Jul 28, 2005, at 10:01 AM, Roger Grosswiler wrote:
>
>>>
>>> Try adding port 80 to your Listen statement(s) in httpd.conf. Also
>>> make
>>>
>> sure you have virtual hosts that capture requests on port 80.
>>
>>>
>>> /Eirik
>>>
>>>
>> i did a file called virtual.conf in /usr/local/etc/apache2/Include
>> with
>> this content:
>>
>> <VirtualHost *:80>
>> ServerName freebsd.domain.net
>> ServerAlias freebsd.domain.net
>> DocumentRoot /usr/local/www/data
>> </VirtualHost>
>
> Make sure you are not enabling SSL globally, but for each vhost
> individually.
> Try the telnet trick mentioned by others, but simply type "GET / HTTP/
> 1.0" <ENTER><ENTER><ENTER> -- it should give you something about
> trying to talk HTTP to a HTTPS server. Would explain why lynx/links
> aren't working.
>
> /Eirik
>
Connected to freebsd.gwch.net (192.168.0.101).
Escape character is '^]'.
GET /HTTP/1.0
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /HTTP/1.0 was not found on this server.</p>
<hr>
<address>Apache/2.0.53 (FreeBSD) PHP/4.3.10 mod_ssl/2.0.53 OpenSSL/0.9.7e
Server at freebsd.gwch.net Port 80</address>
</body></html>
Connection closed by foreign host.


seems as perhaps i have a problem with my DocumentRoot???

Ro



More information about the freebsd-stable mailing list