Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: websocket with mod_proxy_wstunnel doesn 't work |
|
Author |
|
WhatsUp
Joined: 16 Jul 2013 Posts: 2
|
Posted: Tue 16 Jul '13 11:54 Post subject: websocket with mod_proxy_wstunnel doesn 't work |
|
|
Hi guys,
Hi,
I have a little problem with the web sockets and my reverse proxy apache, i have upgraded in 2.2.22 and loaded the module mod_proxy_wstunnel.
The httpd.conf :
Code: |
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.toto.fr
ServerAlias toto.fr
ProxyPass /my_app http://1X.X.X.1:8080/my_app
ProxyPassReverse /web_pmr http://1X.X.X.1:8080/my_app
ProxyPassReverseCookiePath /my_app /
ProxyPassReverseCookieDomain localhost my_app
ProxyRequests off
ProxyTimeout 15
#WEBSOCKETS
ProxyPass /my_app/BasicWebsocketServlet ws://1X.X.X.1:8080/my_app/BasicWebsocketServlet retry=0
ProxyPassReverse /my_app/BasicWebsocketServlet ws://1X.X.X.1:8080/web_pmr/BasicWebsocketServlet retry=0
ErrorLog "logs/my_app_error.log"
LogLevel debug
CustomLog "logs/my_app_access.log" combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
|
When i test in my local url, websockets are working but with the reverse proxy apache no trace in tomcat logs.
Loaded modules :
alias.conf -> ../mods-available/alias.conf
alias.load -> ../mods-available/alias.load
auth_basic.load -> ../mods-available/auth_basic.load
authn_file.load -> ../mods-available/authn_file.load
authz_default.load -> ../mods-available/authz_default.load
authz_groupfile.load -> ../mods-available/authz_groupfile.load
authz_host.load -> ../mods-available/authz_host.load
authz_user.load -> ../mods-available/authz_user.load
autoindex.conf -> ../mods-available/autoindex.conf
autoindex.load -> ../mods-available/autoindex.load
cgid.conf -> ../mods-available/cgid.conf
cgid.load -> ../mods-available/cgid.load
deflate.conf -> ../mods-available/deflate.conf
deflate.load -> ../mods-available/deflate.load
dir.conf -> ../mods-available/dir.conf
dir.load -> ../mods-available/dir.load
env.load -> ../mods-available/env.load
mime.conf -> ../mods-available/mime.conf
mime.load -> ../mods-available/mime.load
negotiation.conf -> ../mods-available/negotiation.conf
negotiation.load -> ../mods-available/negotiation.load
proxy_balancer.conf -> ../mods-available/proxy_balancer.conf
proxy_balancer.load -> ../mods-available/proxy_balancer.load
proxy.conf -> ../mods-available/proxy.conf
proxy_ftp.conf -> ../mods-available/proxy_ftp.conf
proxy_ftp.load -> ../mods-available/proxy_ftp.load
proxy_http.load -> ../mods-available/proxy_http.load
proxy.load -> ../mods-available/proxy.load
proxy_wstunnel.load -> ../mods-available/proxy_wstunnel.load
setenvif.conf -> ../mods-available/setenvif.conf
setenvif.load -> ../mods-available/setenvif.load
ssl.conf -> ../mods-available/ssl.conf
ssl.load -> ../mods-available/ssl.load
status.conf -> ../mods-available/status.conf
status.load -> ../mods-available/status.load
I try since 2 days to implement support of websockets in apache...
In chrome, on the public url, the web socket is statut 503 service unavalaible, on the local url i have my header and websocket work properly.
Any idea ?
In the apache error_log in debug, mode mod_proxy_wstunnel doesn't appear, it's normal ?
I have just this :
[Tue Jul 16 09:39:27 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 1 in child 23737 for worker ws://10.xx.xx.xx/my_app/BasicWebsocketServlet
[Tue Jul 16 09:39:27 2013] [debug] proxy_util.c(1837): proxy: worker ws://10.xx.xx.xx/my_app/BasicWebsocketServlet already initialized
Thank you. |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Tue 16 Jul '13 12:35 Post subject: |
|
|
mod_proxy_wstunnel is not a standard mod for Apache 2.2.
In 2.4.5+ there is a mod_proxy_wstunnel available for unix.
You are running Windows ? (this is primarily a Windows forum)
Steffen |
|
Back to top |
|
WhatsUp
Joined: 16 Jul 2013 Posts: 2
|
Posted: Tue 16 Jul '13 14:35 Post subject: |
|
|
I run it under Ubuntu 12.04, i have 2 installs of apache, one in 2.2.22 and other 2.4.5. With the 2 version, i don't have any log in error_log for mod_proxy_wstunnel, it is very strange. |
|
Back to top |
|
|
|
|
|
|