mod-proxy

tunneling secure websocket connections with apache

可紊 提交于 2019-11-26 17:37:31
问题 I have an Apache running that is only accessible via HTTPS. I want to serve websockets from an additional server application which runs on the same machine, but since it is not possible for clients to connect on another port than 443 to our server, those websocket connections need to be proxied through the Apache. Now, I've installed mod_proxy and configured it as follows: SSLProxyEngine on ProxyPass /ws https://127.0.0.1:9001 This does not work however. I can connect to https://server/ws in

Apache + Node.js + mod_proxy. How to route one domain to :3000 and another to :80

前提是你 提交于 2019-11-26 17:35:42
问题 Problem: I need to host a Node-application and a php-application on the same server on different domains. example.com should use port 80 as normal, but node-example.com should route to port 3000. Routing ALL traffic from port 80 to 3000 works fine using mod_proxy, thusly: <VirtualHost *:80> ServerAdmin info@node-example.com ServerName node-example.com ServerAlias www.node-example.com ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass http://localhost

apache to tomcat: mod_jk vs mod_proxy

别等时光非礼了梦想. 提交于 2019-11-26 11:49:27
问题 What are the advantages and disadvantages of using mod_jk and mod_proxy for fronting a tomcat instance with apache? I\'ve been using mod_jk in production for years but I\'ve heard that it\'s \"the old way\" of fronting tomcat. Should I consider changing? Would there be any benefits? 回答1: A pros/cons comparison for those modules exists on http://blog.jboss.org/ mod_proxy * Pros: o No need for a separate module compilation and maintenance. mod_proxy, mod_proxy_http, mod_proxy_ajp and mod_proxy

Apache 2.4 + PHP-FPM and Authorization headers

人盡茶涼 提交于 2019-11-26 10:29:00
问题 Summary: Apache 2.4\'s mod_proxy does not seem to be passing the Authorization headers to PHP-FPM. Is there any way to fix this? Long version: I am running a server with Apache 2.4 and PHP-FPM. I am using APC for both opcode caching and user caching. As recommended by the Internet, I am using Apache 2.4\'s mod_proxy_fcgi to proxy the requests to FPM, like this: ProxyPassMatch ^/(.*\\.php)$ fcgi://127.0.0.1:9000/foo/bar/$1 The setup works fine, except one thing: APC\'s bundled apc.php, used to

Authorization header missing in django rest_framework, is apache to blame?

巧了我就是萌 提交于 2019-11-26 07:28:07
问题 I\'ve managed to extend TokenAuthentication and I have a working model when using the request session to store my tokens, however when I attempt to pass Authorization as a header parameter as described here, I noticed that my Responses come back without the META variable HTTP_AUTHORIZATION. I also noticed that if I pass \"Authorization2\" as a header parameter that it is visible in the request: { \'_content_type\': \'\', \'accepted_media_type\': \'application/json\', \'_request\':

NGINX to reverse proxy websockets AND enable SSL (wss://)?

China☆狼群 提交于 2019-11-26 06:54:39
问题 I\'m so lost and new to building NGINX on my own but I want to be able to enable secure websockets without having an additional layer. I don\'t want to enable SSL on the websocket server itself but instead I want to use NGINX to add an SSL layer to the whole thing. Every web page out there says I can\'t do it, but I know I can! Thanks to whoever (myself) can show me how! 回答1: Just to note that nginx has now support for Websockets on the release 1.3.13. Example of use: location /websocket/ {