The tag has no wiki summary.

learn more… | top users | synonyms

25
votes
5answers
30k views

Configure nginx for jboss/tomcat

In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
16
votes
2answers
34k views

Apache ProxyPass with SSL

I want to proxy requests from an SSL site via a non-SSL site. My Apache httpd.conf looks like this: <VirtualHost 1.2.3.4:80> ServerName foo.com ProxyPass / https://bar.com/ ...
7
votes
3answers
8k views

How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?

I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket. The Nginx configuration file: server { listen 80; location / { proxy_pass ...
5
votes
5answers
14k views

Help me understand how to use ProxyPass

UPDATE: I added a revised question after playing around with it two answers below. Hi there, If you're reading this you're probably familiar with Apache's mod_proxy and its ProxyPass function. Like ...
4
votes
5answers
3k views

How do I smoothly migrate a web server's DNS from one IP address to another?

I currently have a domain name registered for a Linux/Apache server that I am going to replace with another on a new IP address. Migrating the data will be relatively quick and a 5 minute disruption ...
4
votes
1answer
8k views

Apache ProxyPass or ProxyPassMatch to exclude a file from proxying

I have a VirtualHost set to proxy all requests to another server running on port 9000. What I have : ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ What I've tried : ...
4
votes
1answer
3k views

Apache ProxyPass ignore static files

Having an issue with Apache front server connecting to a Jetty application server. I thought that ProxyPass ! in a location block was supposed to NOT pass on processing to the application server, but ...
2
votes
2answers
981 views

Nginx user subdomains, should I proxy_pass?

I am trying to setup user subdomains, serving content from specific folders: www.example.com/username served from username.example.com (just like github pages). I've looked at Nginx rewrites, but I ...
2
votes
1answer
329 views

Two SSL certificates required for two Apache servers using mod_proxy to serve HTTPS?

Our application originally used a single Apache server with mod_perl installed to serve up all HTTPS requests. Due to memory issues I've added a lighter Apache installation and used ProxyPass to hand ...
2
votes
2answers
2k views

nginx unwanted location redirect with trailing slash

I have a location location /pass/ { proxy_pass http://localhost:12345/; } So it is supposed to proxify urls http://example.com/pass/whatever to http://localhost:12345/whatever The thing I ...
2
votes
1answer
6k views

Issues with ProxyPass and ProxyPassReverse when proxying to localhost and a different TCP port

I am attempting to use ProxyPass and ProxyPassReverse to proxy requests through Apache to another server instance that is bound to the localhost on a different TCP port that the Vhost exists (VHost is ...
2
votes
2answers
3k views

How to remove the path with an nginx proxy_pass

I have a running web-application at http://example.com/, and want to "mount" another application, on a separate server on `http://example.com/en. Upstream servers and proxy_pass seem to work, but for ...
2
votes
1answer
164 views

Setting up custom error pages for nginx with https and virtual hosts

We have an nginx (OpenResty 1.4.2.7) instance acting as a load balancer. It has two server directives, one to serve one specific site (let's call it www.our-special-host.com) and one wildcard for ...
2
votes
1answer
1k views

Apache proxypass trailing slash / directory issue

I have a legacy site for a charity running on an old Apache 1.3 instance, behind Apache 2 running proxypass. When a request comes to example.com, Apache 2 sends it internally to localhost:8080 which ...
2
votes
2answers
2k views

Disable ProxyPass rules within a virtual host on apache 2

I have a global proxypass rule in httpd.conf rules at global level ProxyPass /test/css http://myserver:7788/test/css ProxyPassReverse /test/css http://myserver:7788/test/css and I have a virtual ...
1
vote
1answer
584 views

Apache mod_rewrite in proxy mode, .htaccess and ProxyPassReverse

In a .htaccess file, I have something like this to proxy Apache to Tomcat: RewriteRule (.*) http://localhost:8080/tomcat-app/$1 [P] All the redirects as well as internal links in HTML files are ...
1
vote
1answer
4k views

REMOTE_USER through Apache reverse proxy

I have an Apache webserver with mod_proxy enabled and a Virtualhost, proxy.domain.com. This proxy is configured to prompt the user for credentials with AuthType Basic. Then, the content of ...
1
vote
2answers
2k views

Fall-back location for Apache's ProxyPass directive?

I've set up Apache to send requests to camera.example.com to an a webcam accessible via an IP address not associated with the server Apache's running on, using ProxyPass: [camera] -- [nat / prt ...
1
vote
1answer
214 views

Nginx dynamic proxy_pass doesn't resolve properly

I'm having problems configuring nginx, I've searched the web for solutions and I have some bits and pieces but I'm still not able to come up with proper configuration. I have registered a domain, ...
1
vote
1answer
954 views

Right way to configure Nginx filtering with ProxyPass

I am using Nginx to proxy pass to my wsgi app served with Circus. I want to allow the traffic to that app for some urls of the app only for some IP address. For now it look like this: server { ...
1
vote
1answer
975 views

How to prevent nginx from reverse proxy specific subdirectories

On Apache you can ProxyPass everything except one or more subdirectories (with "!"). ProxyPass /subdir ! ProxyPass / http://localhost:9999/ What is the Nginx equivalent ? My first guess is ...
1
vote
1answer
3k views

proxypass apache over nonstandard port - how can it be that the 192.168.*:9999 works from the computer itself but not another computer on the network?

httpd.conf vhost looks like this: <VirtualHost *:9999> ServerAdmin admin@example.com ServerName www.example.com ServerAlias example.com # Indexes + Directory Root. ...
1
vote
3answers
949 views

nginx proxy pass redirect through load balancer

I have several backend webservers that are load-balanced using LVS. These machines have only internal non-routable IPs on them. The load-balancer is the only machine with an external IP. This setup ...
1
vote
2answers
36 views

Nginx location regex doesn't work with proxy pass

I'm trying to get these 2 location directives working in Nginx but I'm getting some errors back when booting Nginx. location ~ ^/smx/(test|production) { proxy_pass ...
1
vote
1answer
950 views

nginx proxy_pass with a backend requesting client certificates

We're proxying a backend that we don't control & the backend is requesting a client certificate when connecting on https. When we request these pages through the proxy the connection times out ...
1
vote
1answer
1k views

NGINX: can I use a mapping of upstream servers with proxy_pass directive?

I have an NGINX server that acts as reverse proxy to a bunch of backend IIS servers. I would like to pass each incoming HTTPS request to a certain backend (upstream) server, depending on the URI ...
1
vote
2answers
839 views

Forwarding PHP requests via ProxyPassMatch as a handler, or only when file exists

I am migrating my server to use mod_proxy_fcgi and php-fpm instead of mod_php. Apache is able to forward .php requests to the fcgi proxy and PHP executes correctly. I've got this working with: ...
1
vote
1answer
797 views

ProxyPass if RewriteCond is TRUE

At proxypass configuration file I have written this line ProxyPass /directory/ ajp://localhost:8009/directory/ It works perfectly At htaccess file RewriteRule ^seconddirectory/(.*)$ ...
1
vote
1answer
2k views

ProxyPass: Redirect directory URL to non-standard port

I've been searching Google and have no had much success in finding an answer. I'm running a server on Ubuntu and I have programs installed that use various non-standard ports. Each one uses a ...
1
vote
1answer
556 views

Fisheye + Nginx Reverse Proxy

I'm trying to run Fisheye behind a proxy. So far, I've managed to get Jira and Stash to work behind the proxy, but not Fisheye. Here's my config file in Nginx: server { listen 80; server_name ...
1
vote
1answer
136 views

ProxyPass: discard body data

I have some rules like <Location /xyz> ProxyPass http://example.com/abc ... </Location> I want to accept requests to http://mypage.lan/xyz/123 and deliver the data of ...
1
vote
1answer
527 views

Serving Rails through Apache using ProxyPass

I have a working rails application that I want to be served through another domain name. So I modified the VirtualHost by adding it as a ServerAlias: <VirtualHost *:80> DocumentRoot ...
1
vote
1answer
553 views

Will using Apache's ProxyPass directive on persistent Ajax connections alleviate the connection limit error?

I've got some javascript that keeps a persistent Ajax connection open for each client, and I know that this can cause some serious issues for apache, but not for lighttpd. One thing I learned from ...
1
vote
2answers
1k views

Apache ProxyPass with SSL

I have a QA setup that consists of multiple internal development servers and one world-accessible provisioning machine that is setup to proxy pass the web traffic. Everything works fine for non-SSL ...
1
vote
1answer
790 views

Apache ProxyPass/ProxyPassReverse to IIS

We have an ASP.NET web application which is mapped to a folder on an apache hosted php site using ProxyPass.ProxyPassReverse. A couple of problems being encountered. cookies are being lost which ...
1
vote
1answer
15 views

ProxyPass Not working (No errors)

I am attempting to forward one of my apache domains onto a different port (which is hosting an Nginx-backed rails app) In my http.conf for the particular virtual host I have: <VirtualHost ...
1
vote
1answer
40 views

Using nginx to proxy multiple instances of sockets.io

I have two separate node.js applications running behind nginx. Both the apps use socket.io and express. One is served on port 5000 and the other on port 5001. But we need them both accessed through ...
1
vote
1answer
191 views

nginx reverse proxy not passing requests

I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on ...
1
vote
0answers
222 views

Apache 2.4 RequestHeader while reverse proxying with ProxyPass

I'm using Ubuntu 14.04 and have multiple Apache HTTP VirtualHosts listening on port 80. One site is reverse proxying for application listening on localhost. Apache has Basic authentification ...
1
vote
1answer
91 views

Reverse Proxy homepage only

I regularly use Apache to reverse proxy to other servers using ProxyPass and ProxyPassReverse. I have been doing this by top level folder. But now I have the requirement to put the site's home page on ...
1
vote
0answers
406 views

nginx proxypass squid

I'm trying to run squid server behind nginx. my sample configuration : location ~* ^/get/(.*) { proxy_pass http://ip:3128; proxy_set_header Host evenstatichostnamefortest.com; ...
1
vote
1answer
221 views

Apache ProxyPass exclude. Don't proxy 404 addresses

I'm trying to set up a reverse proxy with Apache, and for the most part it is working well with ProxyPass. I would like to exclude one of the directories which I understand I can do with the ! ...
1
vote
0answers
292 views

Subsonic not working behind nginx due to ;jsessionid= being add to every single URL

I started using nginx as a front-end in order to standardize my services access via sub-domains. It works well for pydio and webmail (RainLoop, very good), but Subsonic doesn’t log in. There is no ...
1
vote
0answers
197 views

Apache ProxyPass to Rack gives 404 error

(for simplicity I changed IPs of Apache server to 1.1.1.1 and Gollum server to 6.6.6.6) I'm trying to serve a Gollum wiki with rack through Apache (since it has SSL set up properly and I'm currently ...
1
vote
2answers
695 views

Apache reverse proxy for Cloud9 using ServerName

I am trying to setup a reverse proxy to a Cloud9 instance running locally on my server using Apache. I have the following setup: <VirtualHost *:80> ProxyPreserveHost On ProxyPass / ...
1
vote
0answers
144 views

reverse proxy on apache for a single virtual host

Preamble: I've configured a publicly accessible server with multiple virtual hosts. The requests for one virtual host need to be sent to a backend server. All the other requests need to be served ...
1
vote
0answers
338 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
1
vote
0answers
149 views

ProxyPass on httpd breaking encoding

We are sending content with multibyte character data to proxypass, which is converting the characters to %uFFFD when it hits our database. How do i prevent httpd from messing with the encoding like ...
1
vote
1answer
272 views

Java website on Tomcat PHP website on Apache - how to get PHP web pages into Java web pages?

We have a Java web application deployed on Tomcat. We also setup Apache and mod_proxy_ajp to route web requests (port 80/443) to Tomcat. We would like to deploy a PHP application on the same Apache ...
1
vote
0answers
403 views

Mod disk_cache permanent caching images and disabling reacurring header updates

I am trying to get mod disk_cache to permantly cache images retrieved from an image server on the webserver using ProxyPass. While the image is being retrieved correctly from the server and is served ...