reverse-proxy

add unique id to requests forwarded from nginx reverse proxy

情到浓时终转凉″ 提交于 2019-12-10 22:47:18
问题 We are running nginx as a reverse proxy that forwards requests to a Clojure application running Compojure, a library that wraps around Jetty and provides our application with the ability to service web requests. We currently capture logs generated by both nginx and the Clojure application (via log4j to syslog). We are unable, however, to match an entry in the nginx log to an entry in the syslog output of the Clojure application. We need to figure out a way to modify the request sent upstream

nginx proxy_pass omitting path

徘徊边缘 提交于 2019-12-10 22:41:30
问题 I have configured a nginx reverse proxy: location / { root /var/www/html; index index.html; } location /login { proxy_pass http://127.0.0.1:9080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location /app { rewrite ^/app/(.*)$ /$1 break; proxy_pass https://10.11.12.13/1020/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } The server listening on port 9080 redirects to the route /app/{generated subpath}. The server on IP 10.11.12.13 processes

Nginx proxy pass and url rewriting

☆樱花仙子☆ 提交于 2019-12-10 20:27:45
问题 How to trig this rule only when I have GET parameters(query string) in url, otherwise I will match on an alias. location ~^/static/photos/.* { rewrite ^/static/photos/(.*)$ /DynamicPhotoQualitySwitch/photos/$1 break; expires 7d; proxy_pass http://foofoofoo.com; include /etc/nginx/proxy.conf; } 回答1: The 1st way that I know of is using a regex against the $args parameter like so: if ($args ~ "^(\w+)=") { Or the 2nd way is to use the convenient $is_args like so: if ($is_args != "") { Remember

HTTP status code names are missing when using Nginx

末鹿安然 提交于 2019-12-10 19:19:14
问题 I'm using Nginx to redirect all HTTP requests to HTTPS in my spring boot application.This is the nginx configuration that i'm using,with that i was able to redirect all requests to Https but when i do it i get the status code returned correctly but it doesnt have the status code name anymore.if i remove nginx and run spring boot application alone i can get the http status with its code name and code . server { listen 80 default_server; listen [::]:80 default_server; server_name _ ; access_log

Socket.io with apache

时间秒杀一切 提交于 2019-12-10 18:44:44
问题 I dont have much experience neither in Node.js not in socket.io, thus maybe I will ask silly questions and sorry for that first of all. I am trying to do following: Installed node on ubuntu where I have apache also installed. Created virtual host in apache and set it as proxy to node. My conf file looks like: <VirtualHost *:80> ServerAdmin giorgi@omedia.ge ServerName node.aidemo.info ServerAlias www.node.aidemo.info ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy>

Caching a POST response with nginx: Should I forward the Cache-Control header to the client?

痴心易碎 提交于 2019-12-10 18:01:51
问题 Our system uses POST requests to preload a list of assets. Given the same list of assets identifiers, the server will respond with the same list of asset data. Since the list of identifiers can be very long (it's actually a multipart request containing a JSON list), we used POST instead of GET although it is idempotent. We use NGINX as a reverse proxy in front of these server. I successfully configured it to work, but there's something that "feels" wrong; I return a Cache-Control: max-age

Create AWS Application Load Balancer Rule which trim off request's prefix without using additional reverse proxy like nginx, httpd

随声附和 提交于 2019-12-10 15:58:46
问题 Basically, I have a couple of services. I want to forward every requests with prefix "/secured" to server1 port 80 and all other requests to server 2 port 80. The problem is that on server1, I am running service which accept the request without "/secured" prefix. In other words, I want to forward every requests such as "http://example.com/secured/api/getUser" to server1 as "http://example.com/api/getUser" (remove /secured from request' path). With AWS ALB, currently the request is sent as

Apache basic authentication issue with reverse proxy

你。 提交于 2019-12-10 15:17:06
问题 I want to add basic authentication for a reverse proxy site of Apache running on Ubuntu server 12.04.1. The web application is Jenkins that is running on a Java EE container. I added below configurations in httpd.conf , ProxyPass /jenkins/ http://localhost:8080/jenkins/¬ ProxyPassReverse /jenkins/ http://localhost:8080/jenkins/¬ ProxyRequests Off¬ ProxyPreserveHost On¬ ¬ <Proxy http://localhost:8080/jenkins*>¬ Order deny,allow¬ Deny from all¬ ▸ AllowOverride AuthConfig¬ ▸ AuthType Basic¬

Reverse Proxy with Heroku (for Wordpress) won't show full pages

為{幸葍}努か 提交于 2019-12-10 10:33:32
问题 I am trying to use a reverse proxy to serve a Wordpress blog running on EC2 at /blog from a rails app running on Heroku. I've used the rack-reverse-proxy gem and followed directions like this: How can I use a subdirectory instead of a subdomain? My app is running at http://myapp.com , my main target (wordpress) server is running at http://ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com . The pages on the target server all serve up fine when accessed directly. However, no matter what page I

Lighttpd Reverse Proxy Settings

大兔子大兔子 提交于 2019-12-10 06:33:34
问题 I am trying to configure Lighttpd to act as a reverse proxy. I want to have several URLs that are proxied to different servers on different ports, either on the same machine or within the local network. For example: / /static /socket /ajax Lighttpd would proxy all of the connections except those to /static . I want to serve all requests to /static directly from this instance of lighttpd. Here is the config file for mod_proxy: ## # Serve Static Content via Lighttpd. # $HTTP["url"] =~ "^/static