logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can not set ProxyWebsocketIdelTimeout
Author
werto87



Joined: 01 Aug 2021
Posts: 2
Location: Germany

PostPosted: Mon 02 Aug '21 8:32    Post subject: Can not set ProxyWebsocketIdelTimeout Reply with quote

Hi,

I want to set ProxyWebsocketIdelTimeout.
When I set ProxyWebsocketIdelTimeout and run apachectl configtest I get
Quote:
AH00526: Syntax error on line 78 of /etc/httpd/conf/httpd.conf:
Invalid command 'ProxyWebsocketIdleTimeout', perhaps misspelled or defined by a module not included in the server configuration

But when I remove ProxyWebsocketIdleTimeout and run httpd -M | grep wstunnel I get
Quote:
proxy_wstunnel_module (shared)

a2enmod mod_proxy_wstunnel
Quote:
ERROR: Module mod_proxy_wstunnel does not exist!

ls /etc/httpd/modules | grep wstunnel
Quote:
mod_proxy_wstunnel.so

httpd -v
Quote:
Server version: Apache/2.4.48 (Unix) Server built: May 28 2021 16:40:47

uname -r
Quote:
5.13.5-arch1-1

How can I set ProxyWebsocketIdelTimeout?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7005
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Aug '21 13:34    Post subject: Reply with quote

The e2en is
Code:

sudo a2enmod proxy_wstunnel


So your proxy_wstunnel_module with httpd -M is displayed correctly.

But you should be able to do that seeting in the ProxyPass config, too.

For example:
Code:

ProxyPass /somepath ws://127.0.0.1:6080/ retry=60 keepalive=On timeout=9999 ttl=9999
ProxyPassReverse /somepath ws://127.0.0.1:6080/ retry=60


See also ohttps://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass

Scroll down to Worker|BalancerMember parameters.

If you still have a question please ask again.
Back to top
werto87



Joined: 01 Aug 2021
Posts: 2
Location: Germany

PostPosted: Mon 02 Aug '21 16:27    Post subject: Reply with quote

Quote:
sudo a2enmod proxy_wstunnel

Does not work I get the not found error.
I tried it with
Quote:
ProxyPass /wss/ wss://my-domain.com:my_port retry=120 keepalive=On timeout=9999 ttl=9999
ProxyPassReverse /wss/ wss://my-domain.com:my_port retry=120

My connection still gets canceled after 60 seconds.
Back to top


Reply to topic   Topic: Can not set ProxyWebsocketIdelTimeout View previous topic :: View next topic
Post new topic   Forum Index -> Apache