reverse-proxy

Apache proxy / rewrite setup for specific file types inside sub directory

拈花ヽ惹草 提交于 2019-12-24 06:34:56
问题 Recently I had to migrate somesite which was nearly 15 years old, consider the new url is https://mynew.domain.com and the old site was https://myold.domain.com (Internal IP : 192.168.1.15, which is not available in public domain) In old site it was having directory called "sitefiles", in which many sub folders and files like images, files etc So what I want to achieve is suppose if user hits url on browser which was file request with white listed extensions such (.jpg , .jpeg, .png, .pdf,

Apache2 Reverse Proxy with authentication over OpenID Connect and authorization over ldap

拜拜、爱过 提交于 2019-12-24 06:04:44
问题 I'm trying to setup a reverse proxy that requires authentication against an OpenID Connect Identity Provider. The User then grants the reverse proxy access to his data. Some applications behind the proxy are only accessible by the user if he is the member of specific LDAP groups. Sadly the applications are the dump and cannot authorize themselves, so the reverse proxy must handle that part. It wasn't so hard to setup the authentication part with mod_auth_openidc. What I struggle with is the

What's difference between static and non-static resources?

喜你入骨 提交于 2019-12-23 19:17:38
问题 I am primarily a front-end developer/designer, however recently, I've been exploring end to end solutions. Yesterday I finished a TODO application using the mean stack and would like to start exploring deployment options to my VPS. That being said, I've been advised to use nginx as a reverse proxy is for serving up static resources? Unfortunately, I'm getting stuck on simple questions. What are the example static resource? What factors define static resources? What are examples of non-static

Nginx reverse proxy to an app in host

南楼画角 提交于 2019-12-23 06:44:13
问题 I have an app that is running outside Docker on port 5000. I am trying to run a reverse proxy in nginx via Docker compose but am unable to communicate with the host's port 5000. In my docker-compose.yml file I have: ports: - 80:80 - 443:443 - 5000:5000 When I try to run this I get: ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint nginx (374026a0d34c8b6b789dcd82d6aee6c4684b3201258cfbd3fb18623c4101): Error starting userland proxy: listen

Nginx reverse proxy to an app in host

梦想的初衷 提交于 2019-12-23 06:43:07
问题 I have an app that is running outside Docker on port 5000. I am trying to run a reverse proxy in nginx via Docker compose but am unable to communicate with the host's port 5000. In my docker-compose.yml file I have: ports: - 80:80 - 443:443 - 5000:5000 When I try to run this I get: ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint nginx (374026a0d34c8b6b789dcd82d6aee6c4684b3201258cfbd3fb18623c4101): Error starting userland proxy: listen

Grafana behind Nginx Reverse Proxy returns {{alert.title}}

寵の児 提交于 2019-12-23 06:01:09
问题 I'm trying to setup Grafana behind Nginx reverse proxy, but I have {{alert.title}} error every time I'm trying to lunch it over a browser. Grafana is running in docker container inside Kubernetes cluster with opened port 30000. Nginx is running inside VM with public IP. I can successfully curl url with Grafana from nginx VM. I don't have public DNS name assigned to my public IP yet, so I'm using public IP instead of DNS name in configs (but I also tried to use DNS name by adding correct

Avoid nginx escaping query parameters on proxy_pass

假装没事ソ 提交于 2019-12-23 04:38:26
问题 I to proxy /api on a domain, I have this location block. location ^~ /api/ { rewrite_log on; rewrite ^/api/(.*) /$1$is_args$args break; proxy_pass http://127.0.0.1:1337; } It works fine as long as the URLs do not have query parameters, but as soon as they do, I get errors on the upstream server like these Could not find path: /records%3fname=hoegh.io The %3f in question here is an URL encoded ? , and since it's URL encoded, the upstream server does not recognize it. That might be retarded,

Reverse proxy same naked domain to different hosts

女生的网名这么多〃 提交于 2019-12-23 02:54:11
问题 I'm managing the DNS of my domain with Cloudflare. The marketing pages for are hosted with Netlify. The main application is hosted with Heroku. Is it possible with cloudflare + a naked domain (my-example.com) to have some paths being served by Netlify and other paths by Heroku? Or am I forced to put one of the hosting services on a subdomain? 回答1: Disclaimer: I work for Netlify. You can definitely do this without running your own server or paying anything extra. Since Netlify already has a

reverse proxy does not work

扶醉桌前 提交于 2019-12-23 01:28:12
问题 I am using GO's reverse proxy like this, but this does not work well package main import ( "net/http" "net/http/httputil" "net/url" ) func main() { u, _ := url.Parse("http://www.darul.io") http.ListenAndServe(":9000", httputil.NewSingleHostReverseProxy(u)) } when I visit the http://localhost:9000, I am seeing not expected page 回答1: From this article A Proper API Proxy Written in Go: httputil.NewSingleHostReverseProxy does not set the host of the request to the host of the destination server.

Can Apache Reverse Proxy exclude certain file types?

孤街醉人 提交于 2019-12-22 09:56:09
问题 I have an Apache/Passenger combo serving Rails 3.x and the same combo serving Rails 2.x via a reverse proxy to Passenger Standalone. The reason I'm doing this is because Rails 2.x uses an older version of Ruby than the Ruby used by the Apache/Passenger. However there is a bit of php in the Rails 2.x app which Passenger Standalone cannot support. (Confirmed by Hongli Lai on the Passenger Discussion Group). Hongli suggests excluding the 'php' bits from the Reverse Proxy. Can this be done, and