Defaulting to a subfolder with Apache mod_proxy

I have this vhost configuration, but the ‘Redirect’ part does not seems to work. Is it wrong ? <VirtualHost *:80> ServerAlias in.example.com ProxyRequests Off ProxyVia Off ProxyPass / http://127.0.0.1:9091/ ProxyPassReverse / http://127.0.0.1:9091/ Redirect permanent / http://in.example.com/web/ </VirtualHost> Answer You can’t ProxyPass / and redirect /. I guess what you’re looking to do is ProxyPass all … Read more

Reverse proxy 502 bad gateway

I have setup a subdomain to proxy my plesk panel, but when saving pages I am getting 502 Bad Gateway error instead of a completion message. I am running CentOS 6. Here is my vhost.conf configuration for http://plesk.domain.tld/: RewriteEngine On RewriteCond %{SERVER_PORT} ^80$ RewriteRule $ https://plesk.domain.tld/ [R,L] Here is my vhost_ssl.conf configuration for https://plesk.domain.tld/: SSLProxyEngine … Read more

Make Node.js app port not accessible on other domains [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 7 years ago. Improve this question I have a server with Parallels Plesk as Server Control Panel, apache2 (with mod_proxy and mod_http_proxy), nginx and Node.js installed. On this server … Read more

Apache & mod_proxy – What’s wrong?

I am limited to one external IP on my server thus to run a mail server alongside with other Apache instance for web hosting, I believe I am forced to use mod_proxy. I tried using mod_proxy in the past but I recall only to get it to work within my internal network, but I need … Read more

Reverse proxy for 2 domain with same context path

I have 2 different domains my.domain1.com and my.domain2.com and both have context name /app1 and this should be routed to two different backend boxes. Problem here is my.domain1.com is running on VirtualHost _default_:443 and routing /app1 for internal01 server. Now i need to configure my.domain2.com to route /app1 requests to internal02 server. Is there option … Read more

503 service unavailable. Apache crashes once in 7-10 days

I use Apache server on Ubuntu 14.04. In order redirect all requests from mypage.com to mypage.com:8080/myapp I use mod_proxy. My 000-default.conf looks as follows: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the … Read more

Apache WebSockets “400 proxy error”

We’re trying to present the WebSocket-enabled interface from a remote device on our website. I’ve configured the WebSocket tunnel in Apache, but I’m getting a “400 Proxy Error” in Firefox (in Chrome: “Websocket connection to … failed”), and the WebSocket upgrade fails (the upgrade request never reaches the remote device). Firefox is using wss://, and … Read more

How to verify mod_proxy settings?

I have an apache httpd (v2.2) in domain aaa.bbb.ccc with mod_proxy settings: /team http://xxx.yyy.zzz/team It just pass url in http://aaa.bbb.ccc/team to http://xxx.yyy.zzz/team. My question is any external tool or any ways to verify my running config is identical to my mod_proxy.conf ? I am developing the proxy update tools, to verify tools setting proxy correctly … Read more