I am trying to work with http-bind and have following virtual host:
<VirtualHost *>
ServerName openfire
DocumentRoot /usr/local/apache2/htdocs/jwchat-1.0
<Directory "/usr/local/apache2/htdocs/jwchat-1.0">
Options +MultiViews
</Directory>
AddDefaultCharset UTF-8
ProxyRequests On
ProxyPass /http-bind
http://127.0.0.1:8080/http-bind/
ProxyPass http-bind/
http://127.0.0.1:8080/http-bind/
ProxyPass /http-bind/
http://127.0.0.1:8080/http-bind/
ErrorLog /usr/local/apache2/logs/jwchat_log
LogLevel warn
</VirtualHost>
When i go to "http://openfire/http-bind/" i get the "service unavailable" page and here are the logs:
From jwchat_log:
[Thu Mar 03 17:27:25 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed
[Thu Mar 03 17:27:25 2011] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
From apache access.log:
12.34.567.89 - - [03/Mar/2011:17:27:25 -0500] "GET /http-bind/ HTTP/1.1" 503 323
Now i tried this on my windows VM and get:
windows:
[Thu Mar 03 17:30:33 2011] [error] (OS 10061)No connection could be made because the target machine actively refused it. : proxy: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed
[Thu Mar 03 17:30:33 2011] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
127.0.0.1 - - [03/Mar/2011:17:30:32 -0500] "POST /http-bind/ HTTP/1.1" 503 323
If i go directly to "localhost" i see the server page and when i try to connect (login) i get:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>
So basically it seems the http-bind for the conf is working in trying to connect but is getting blocked AND the server's functions is getting blocked too... I am using centos 5.5 and it has SE Linux on it. I tried to disable firewall and SE Linux (didn't restart) but still nothing..
I checked the iptables and it is:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 8080 -j ACCEPT
doesnt this mean it is being allowed?
i am really confused why this is happening..some help please!
thanks!