Questions tagged [mod-proxy]

Module for the apache webserver with which apache can be used as proxy server. With this module apache can act as a regular proxy, or as a reverse proxy for upstream servers.

689 questions
3
votes
3 answers

disable mod_proxy for subdirectory (apache)

I have apache with one folder used for reverse proxy: ... ProxyPass /site http://server.local:8989/site ProxyPassReverse /site http://server.local:8989/site How can I disable proxy for url's /site/IMAGES/*…
osgx
  • 603
  • 12
  • 26
3
votes
1 answer

Apache2 mod rewrite extremely slow, on one server only

I have a site on my local ubuntu dev box with some mod rewrite rules, which we are attempting to use to force google and other bots to index the correct page, rather than our ajax snippets as they have been doing. Although the rules are a bit longer…
sgc
  • 41
  • 5
2
votes
1 answer

Apache 2.4: mod_alias, mod_rewrite, mod_proxy execution order

I can't find any documentation on Apache vhosts instructions priority / execution order between mod_alias (Redirect instructions), mod_rewrite (RewriteRule instructions) mod_proxy (ProxyPass instructions). Is there any documentation out there…
Quentin S.
  • 123
  • 1
  • 5
2
votes
2 answers

Authorization based on custom Header (Apache)

I have a service running behind a Apache Reverse-Proxy that uses the custom headers "username" and "role" to identify users and their role. I want Apache HTTPD to restrict access to to people whose custom HTTP-header "groupmembership" contains one…
2
votes
1 answer

Apache and PHP-FPM security with mod_proxy_fcgi

I use PHP-FPM in a shared hosting configuration. Each FPM pool runs as a different user. Apache runs as www-data. Apache connects via a socket using mod_proxy_fcgi. I allow users to use .htaccess files. How do I prevent a user from connecting to the…
2
votes
1 answer

Best way to add authentication layer to static file requests?

I am trying to figure out the best way to add an authentication check to requests for static assets on my server. I am running Apache2.4 and PHP/Laravel, which runs by serving static content directly from the DocumentRoot and enters at the…
Neurax
  • 123
  • 1
  • 6
2
votes
1 answer

Lighttpd reverse proxy HTTPS to another server on HTTP

I've a Lighttpd server running on HTTPS, and I want to have one subdirectory on the server act as a reverse proxy for a separate server that runs on HTTP. I've tried following guides on doing both proxy and url rewrite, but something to do with how…
cogm
  • 121
  • 1
  • 4
2
votes
1 answer

Apache RewriteRule on VirtualHosts doesn't work with group capture regex

I need to create a RewriteRule to delegate an URL path like /tdg/image.jpg?mode=crop&width=300&height=300 to a local proxy. The proxy needs the given URL be transformed into the following…
2
votes
0 answers

Apache proxy - split SSL_CLIENT_S_DN_CN value and set header

I have configured on Apache proxy mutual SSL with SSLVerifyClient require SSLVerifyDepth 3 The configuration and communication is working like expected. Now I would like to send from Apache proxy to backend information from Common Name field in…
user1563721
  • 121
  • 1
2
votes
1 answer

Apache2 mod_proxy - URL whitelisting

I'm trying to configure apache (2.4.18) on ubuntu 16.04 as a forward proxy to allow workstations on a couple of subnets to access a selection websites on the internet. I have managed to configure mod_proxy and restrict access to particular subnets,…
2
votes
1 answer

proxy_http time out error

Hello Can someone help me to resolve the below error [Tue Dec 13 21:07:12.176702 2016] [proxy_http:error] [pid 9437372:tid 5398] (78)Connection timed out: [client 111.113.130.243:45615] AH01102: error reading status line from remote server…
mikegray.397
  • 21
  • 1
  • 1
  • 2
2
votes
2 answers

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 host Listen localhost:7788 NameVirtualHost…
chinto
  • 121
  • 1
  • 4
2
votes
2 answers

dynmap through mod_proxy on a external webserver

My setup consist of two servers, one for hosting websites and one for doing the heavy lifting (for example Minecraft). I am using Spigot to power some plugins and one of the plugins is dynmap (which is a interactive map for showing the world and the…
Orphans
  • 1,396
  • 2
  • 18
  • 30
2
votes
1 answer

Apache 2.2 proxy reverse and rewrite

I'm facing an issue when trying to configure apache 2.2 as a proxy reverse. I've an application running at my backend server http://internal.mydomain.com/App1/, for now this URL is going to be the $URL, because I'm a new guy here and I'm not able to…
2
votes
1 answer

Remove double slash in gitlab address

I set up gitlab on my personal server and used this answer and this answer (along with some input from this to make it work with my apache installation. Everything works fine, when I go to gitlab.example.com, I see the gitlab UI, can create accounts…