|
Home > Archive > Web Servers on Unix and Linux > October 2005 > Apache2 - Connection closed for any request on particular virtualhost
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Apache2 - Connection closed for any request on particular virtualhost
|
|
| Peter Hoskin 2005-10-24, 10:31 am |
| Hi,
I'm running Apache 2.0.54 from the FreeBSD ports on FreeBSD 5.4-p8. I
also have mod_php installed.
Created a VirtualHost and it seems every request to that VirtualHost
will not be fulfilled.
<VirtualHost 72.21.53.107:80>
ServerName www.molvaro.com
ServerAlias molvaro.com
DocumentRoot /home/www/molvaro.com/public_html
ErrorLog /home/www/molvaro.com/logs/error_log
CustomLog /home/www/molvaro.com/logs/access_log common
ScriptAlias /cgi-bin/ /home/www/molvaro.com/cgi-bin/
</VirtualHost>
(#:/usr/local/etc/asterisk)- telnet www.molvaro.com 80
Trying 72.21.53.107...
Connected to www.molvaro.com.
Escape character is '^]'.
GET / HTTP/1.1
Host: www.molvaro.com
Connection closed by foreign host.
Strangely, if you request http://72.21.53.107/~molvaro.com it works
fine. Been pounding my head over this one, there are approx 10 other
VirtualHosts and they all work fine!
I read an earlier post to this group that suggested unloading all kinds
of modules before finally the problem was resolved by someone loading
binaries. I might go give the apache2 binary a go.
| |
|
| Put a
NameVirtualHost 72.21.53.107
into the main part of your httpd.conf and then use
<VirtualHost www.molvaro.com:80>
T.
| |
| Peter Hoskin 2005-10-24, 10:31 am |
| Already have that.
Tim wrote:
> Put a
>
> NameVirtualHost 72.21.53.107
>
> into the main part of your httpd.conf and then use
>
> <VirtualHost www.molvaro.com:80>
>
> T.
>
| |
| Peter Hoskin 2005-10-24, 10:31 am |
| Interesting... ends up it was php at fault. I had removed it from my
httpd.conf and stopped and started apache which didn't seem to change
anything.
Removed php from the FreeBSD ports entirely and everything worked!
Recompiled php from the ports, and it still works. Must have been
something wrong with my build. Can't explain why it didn't seem to work
with it out of my httpd.conf though
Peter Hoskin wrote:
> Hi,
>
> I'm running Apache 2.0.54 from the FreeBSD ports on FreeBSD 5.4-p8. I
> also have mod_php installed.
>
> Created a VirtualHost and it seems every request to that VirtualHost
> will not be fulfilled.
>
> <VirtualHost 72.21.53.107:80>
> ServerName www.molvaro.com
> ServerAlias molvaro.com
> DocumentRoot /home/www/molvaro.com/public_html
> ErrorLog /home/www/molvaro.com/logs/error_log
> CustomLog /home/www/molvaro.com/logs/access_log common
> ScriptAlias /cgi-bin/ /home/www/molvaro.com/cgi-bin/
> </VirtualHost>
>
> (#:/usr/local/etc/asterisk)- telnet www.molvaro.com 80
> Trying 72.21.53.107...
> Connected to www.molvaro.com.
> Escape character is '^]'.
> GET / HTTP/1.1
> Host: www.molvaro.com
>
> Connection closed by foreign host.
>
> Strangely, if you request http://72.21.53.107/~molvaro.com it works
> fine. Been pounding my head over this one, there are approx 10 other
> VirtualHosts and they all work fine!
>
> I read an earlier post to this group that suggested unloading all kinds
> of modules before finally the problem was resolved by someone loading
> binaries. I might go give the apache2 binary a go.
|
|
|
|
|