FAQ Database Discussion Community


Remote nginx proxy server - unable to download file from website?

php,nginx,joomla,proxy,reverse-proxy
I've set up a remote reverse proxy server using nginx that is helping with traffic throttling to our website (lots of DDOS attacks lately). The website is currently built on an old version of Joomla. When you try to download a file from the website, it redirects home rather than...

How to configure Wampserver to act as a WebSocket proxy?

html5,proxy,websocket,wampserver,reverse-proxy
I'm trying to set up a proxy server for a WebSocket chat app, but the client is telling me that it can't establish a connection to the proxy. I'm pretty new to WebSockets, so I have probably missed something. My current setup is as follows: OS: Windows 7 64-bit Proxy:...

How to force Apache 2.2 to send the full certificate chain?

apache,ssl,certificate,reverse-proxy,mod-ssl
We are using Apache 2.2.25 with mod_ssl in the reverse proxy mode using mod_proxy. It has a server certificate we use for testing purposes, issued by GoDaddy. There are 3 certificates in the chain, server cert -> GoDaddy intermediate CA -> GoDaddy Root CA. The intermediate CA (Go Daddy Secure...

Apache proxypass for Ionic Framework app

apache,ionic-framework,virtualhost,reverse-proxy,mod-proxy
I've managed to reach internal localhost:8100 (where ionic server lives) from an external device accessing to 192.168.1.130/ionic with a proxypass. My http-vhosts.conf: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/Volumes/DATA/03-www" ServerName localhost <Directory "/Volumes/DATA/03-www"> AllowOverride All Require all granted </Directory> ProxyPreserveHost On ProxyPass /ionic http://localhost:8100 ProxyPassReverse /ionic http://localhost:8100 </VirtualHost> The problem here...

Nginx reverse proxy to Wordpress on an URI

wordpress,symfony2,redirect,nginx,reverse-proxy
I have a Symfony 2.5.X app running on an nginx server. I will call it domain.com. The /news URI within that server is configured as a reverse proxy to a remote machine, where I run Wordpress blog on nginx server again. I will call it blog.domain.com. domain.com's configuration looks like...

Reverse Proxy in Python using WSGI

python,proxy,wsgi,reverse-proxy
app, built with Flask. I want to have the following routing : "/" -> my Flask app "/foo/" -> Reverse proxy toward http://bar/ So far, I don't have any reverse proxy, so my application looks like : import app [...] if __name__ == '__main__': app.app.secret_key = 'XXX' app.app.run(debug=True, use_reloader=False) I...

Do HTTPS Reverse Proxies without CONNECT exist?

https,connect,reverse-proxy
Is it possible to have an HTTPS Reverse Proxy without issuing CONNECT message? Do those kind of proxies exist?

WL-Proxy-Client-Cert header not sent

apache,servlets,weblogic,reverse-proxy
I m using Oracle HTTP Server as reverse proxy for WebLogic. I have set up SSL on both the proxy and the server with client certificate authentication. It works and the clients get authenticated by OHS, but i need to pass client certificate information to WebLogic so i can look...

How to perform proxypassreverse with regex

regex,apache,reverse-proxy
I am stuck in this problem for past few days, I am using reverse proxy of Apache server and I managed to run the reverse proxy by making the following changes in config file: ProxyPass: /server-01/ server-01.{My server} ProxyPassReverse: /server-01/ server-01.{My server} ProxyPass: /server-02/ server-02.{My server} ProxyPassReverse: /server-02/ server-02.{My server}...

How can I make a special URL like "http://appname/

networking,nginx,proxy,reverse-proxy
I know some applications run on companies' internal networks with URLS like "https:/statsd/", so I was wondering how to go about doing this. I was thinking maybe I would use a reverse proxy like Nginx to proxy all urls that match a particular regex to the correct server, but I...

Apache proxy - HTTP to HTTPS

windows,apache,proxy,reverse-proxy,mod-proxy
I work with application which comunicate with server over HTTP, but this server runs on HTTPS in my case and there is also basic authentication. There is no way to change this settings. My idea is configure proxy on Apache server and then website wil be accessible at http://localhost/ and...

apache websockets reverse proxy

apache,websocket,reverse-proxy
How do I get Apache to reverse proxy web socket connections? I have a chat room application that works fine on the local host but not for connections through the reverse proxy. How do I set this up so that it will work? <VirtualHost *:80> ServerAdmin [email protected] ProxyRequests off DocumentRoot...

How to configure Nginx to try two upstreams before 404ing?

nginx,configuration,reverse-proxy
Given an Nginx configuration roughly like this: upstream A { server aa:8080; } upstream B { server bb:8080; } server { listen 80; location @backendA { proxy_pass http://A/; } location @backendB { proxy_pass http://B/; } location / { # This doesn't work. :) try_files @backendA @backendB =404; } } Basically,...

Elasticsearch head plugin not working through nginx reverse proxy

nginx,elasticsearch,reverse-proxy,elasticsearch-plugin
I have elasticsearch with the head plugin installed running on a different server. I also set up an nginx reverse proxy for my ES instance. The configuration looks like below: http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name es.mydomain.net; location / { proxy_set_header...

Another nginx reverse proxy issue

ssl,nginx,reverse-proxy
I'm putting together an nginx reverse proxy. Here is a working nginx conf file snippet: upstream my_upstream_server { server 10.20.30.40:12345; } server { server_name ssl-enabled.example.com; listen 443 ssl; ssl_certificate /etc/ssl/server.crt; ssl_certificate_key /etc/ssl/server.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location / { proxy_pass http://my_upstream_server/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP...

Apache ProxyPassReverse not rewriting Location header properly

apache,mod-rewrite,reverse-proxy,mod-proxy,mod-ssl
I'm configuring apache to proxy SSL requests to a local backend server. Here are the relevant parts of the virtual host: <VirtualHost *:443> ... SSLEngine on SSLCertificateFile /path/to/server.crt SSLCertificateKeyFile /path/to/server.key RewriteEngine On <Proxy balancer://unicornservers> BalancerMember http://127.0.0.1:8080 </Proxy> # Redirect all non-static requests to unicorn RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://unicornservers%{REQUEST_URI}...

Require https with Spring Security behind a reverse proxy

java,https,spring-security,reverse-proxy
I have a Spring MVC application secured with Spring Security. The majority of the application uses simple http to save resources, but a small part processes more confidential information and requires an https channel. Extract from the security-config.xml : <sec:http authentication-manager-ref="authenticationManager" ... > ... <sec:intercept-url pattern="/sec/**" requires-channel="https"/> <sec:intercept-url pattern="/**" requires-channel="http"/>...

upstream timed out (110: Connection timed out) for static content?

nginx,reverse-proxy,connections
I've a situation where two webservers are setup with nginx as loadbalancer and are backends themselves. Distribution is Debian Wheezy. Config is the same on both servers (Quad-Core with 32GB RAM) TCP #/etc/sysctl.conf vm.swappiness=0 net.ipv4.tcp_window_scaling=1 net.ipv4.tcp_timestamps=1 net.ipv4.tcp_sack=1 net.ipv4.ip_local_port_range=2000 65535 net.ipv4.tcp_max_syn_backlog=65535 net.core.somaxconn=65535 net.ipv4.tcp_max_tw_buckets=2000000 net.core.netdev_max_backlog=65535 net.ipv4.tcp_rfc1337=1 net.ipv4.tcp_fin_timeout=5...

Magento frontend redirect error while using reverse proxy

apache,magento,reverse-proxy
We've been struggling with a problem involving a Magento website and a reverse proxy. Server A is used as a reverse proxy (apache) and redirects incoming subdomain.domain.com/appname to local-ip/appname hosted on server B (apache as well). What is really weird is that everything works fine on backend. We can login,...

gitlab behind https terminating reverse proxy and oauth

github,oauth,https,reverse-proxy,gitlab
I have installed GitLab 7.8.4 on a server behind pound which terminates HTTPS connections for me. How do I configure GitLab to always assume that it is accessed via HTTPS without letting it also handle the HTTPS connection? In practice I see the following problem: I'm adding GitHub authentication to...

ENOTFOUND error with express.js (nodejs)

javascript,node.js,express,proxy,reverse-proxy
whenever I try to do some redirecting to another web page (e.g. google.com) with my nodejs express server it will fail returning the following error: throw er; // Unhandled stream error in pipe. ^ Error: getaddrinfo ENOTFOUND google.com at errnoException (dns.js:44:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26) I tried many differend...

How to configure OwnCloud and Reverse Proxy?

apache,proxy,reverse-proxy,owncloud
Currently we do have multiple application servers that are physically separated to each other. We do also have multiple public IP address and planning to consolidate the web application server into one (1) public IP address. As today, I am planning for our ownCloud to act as reverse proxy server...

How to set up a reverse proxy in nodejs for multiple targets?

javascript,node.js,proxy,reverse-proxy
I am using nodejs, expressjs and request to create a reverse proxy. What I want is that when a request is sent to http://localhost:PORT/NAME/ that the corresponding page is loaded. For example, if I enter http://localhost:1234/google/ the google website would be loaded and if I enter http://localhost:1234/stack/ the stackoverflow page...

Apache ProxyPass: standalone vs location tag?

apache,reverse-proxy
How do these two code blocks differ? ProxyPass /app http://10.0.0.10/blah ProxyPassReverse /app http://10.0.0.10/blah versus <Location /app> ProxyPass http://10.0.0.10/blah ProxyPassReverse http://10.0.0.10/blah </Location> Thanks!...

Configure Apache as reverse proxy and tomcat over https

apache,tomcat,https,reverse-proxy
Is there any issues if I configure apache reverse proxy with https which will communicate with tomcat over again https. e.g Browser-> HTTPS -> Apache -> HTTPS-> Tomcat Thanks in advance....