RE: [users@httpd] Reverse proxy

2020-03-24 Thread Muggeridge, Matt
I’ll add a little more about cookies to Mark’s excellent answer… If you’re using cookies for passing authentication tokens via the reverse-proxy, then read about ProxyPassReverseCookiePath. E.g. let’s say your proxy uses the path “/foo/” and this is mapped to ”/” on the backend. Then you need

[users@httpd] RE: query on apache reverse proxy

2020-01-23 Thread Muggeridge, Matt
y need things like: SetOutputFilter AddOutputFilterByType SUBSTITUTE text/javascript text/html text/css That's all for now. Matt. From: Sontakke, Sachin (NonEmp) Sent: Friday, 24 January 2020 1:48 AM To: users@httpd.apache.org; Muggeridge, Matt Subject: RE: query on apache reverse proxy Tha

[users@httpd] RE: query on apache reverse proxy

2020-01-22 Thread Muggeridge, Matt
I'll use your terminology of "Web Server" and "Apache Reverse Proxy" to refer to the two entities of interest here. >But after adding apache reverse proxy, when the client hits the F5 URL - all >the subsequent requests are going to Web Server on 8080 port and getting >served from there instead

[users@httpd] Modifying Headers Programmatically

2019-09-09 Thread Muggeridge, Matt
I have an app that runs on frontend- and backend-servers. Customers login to the frontend-server and the same credentials are used for various apps available on the backend-servers. From within their session on the frontend-server, they select an app on the backend server, whereupon they auto

RE: [users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Muggeridge, Matt
With a little googling, this technique looks promising… https://stackoverflow.com/questions/15083481/how-can-i-replace-apache-http-code-404-to-200 * As I cannot alter the backend behaviour Yet, you talk about using mod_substitute and mod_header to alter the server’s behaviour. If the 302

RE: [users@httpd] Re: Apache web server devouring resources

2019-03-28 Thread Muggeridge, Matt
You will need to do some more triaging. Suggestions for things to investigate more deeply: http Log files, system log files, system performance monitoring, connection statistics, source of traffic, TCP performance tuning, firewall control, protection against DOS attacks... and that's just off

[users@httpd] RE: Help configure a Reverse proxy with Substitute

2019-03-18 Thread Muggeridge, Matt
See the documentation on mod_substitute.html. It describes that if you want to access environment variables, then the substitution must begin with 'expr='. The doc provides an example for substituting with variables: Expression E

RE: [users@httpd] Getting port 80 error even though listening on different port

2019-02-17 Thread Muggeridge, Matt
You don’t say what is listening on port 80. I’d first stop Apache httpd and then check the ports you want to use are free: lsof -i:80 -i:8080 This should return nothing. Watch the Apache httpd error log, as specified in your “ErrorLog” directive; I suggest using “tail -f ”, then start Apache

RE: [users@httpd] Use of ProxyPassReverse

2019-01-29 Thread Muggeridge, Matt
ProxyPassReverse is used for rewriting response headers related only to redirection. As per the docs, it affects only “Location”, “Content-Location” and “URI” headers on HTTP redirect responses. The example they give is helpful (although cluttered with other concepts). Here is a more crystal

[users@httpd] RE: Can I use If condition against custom header name that my request is passing in Apache 2.4

2019-01-24 Thread Muggeridge, Matt
Ø Cannot parse condition clause: Unterminated string or variable \n Did you try terminating your string? Check your syntax. Matt. From: Naveen Nandyala [mailto:naveen.nandya...@walmart.com.INVALID] Sent: Friday, 25 January 2019 9:00 AM To: users@httpd.apache.org Subject: [users@httpd] Can I us

RE: [users@httpd] Doubts in apache-2.4.37

2019-01-15 Thread Muggeridge, Matt
Your Q3 has two concepts mixed together. You’re asking if it is sent as a stream or as an unencrypted message. I don’t understand what you’re really asking about it being a ‘stream’ or what is behind your question. You may have to expand on that part of your question if it’s important. Regar

[users@httpd] RE: About Using ProxyPass Directive

2019-01-14 Thread Muggeridge, Matt
Ø ProxyPass "/?q=accesskey" From the ProxyPass documentation, it states: url is a partial URL for the remote server and cannot include a query string. If you must use a query string then presumably you will need the more flexible RewriteRule directive with the [P] flag. Matt. From: Osman Zak

[users@httpd] RE: Updating Response url from Apache

2019-01-13 Thread Muggeridge, Matt
There are bound to be other approaches, but one method is to configure the www.external.com server as a reverse proxy. This assumes you have control of the web server running on www.external.com. Matt. From: Naveen Nandyala [mailto:naveen.nandya...@walmart.com.INVALID] Sent: Monday, 14 January

[users@httpd] RE: Configuring reverse proxy

2019-01-13 Thread Muggeridge, Matt
? But first I want to ask if Apache needs to be able to see my external IP address. That's ambiguous. Is your 'external IP address' the publicly visible address that is used to access your website? If so, then Apache will need to accept incoming connection requests on that IP address, natura

[users@httpd] Permanently cache reverse-proxy results

2018-11-12 Thread Muggeridge, Matt
The reverse-proxy receives the client's HTTP GET request, then: 1. Retrieves gzipped content from a back-end server 2. Inflates content 3. Performs many substitutions across various resources (JS, HTML, CSS, etc) 4. Deflates resulting content 5. Delivers response to

RE: [users@httpd] Modifying request body and content type going to proxy url

2018-06-04 Thread Muggeridge, Matt
> On 3 Jun 2018, at 07:23, Shiva Kumar K R wrote: > > Hi All, > I am able to configure httpd as reverse proxy, I have to modify json body in > post request coming from client to URL encoded format before sending that to > specific proxy server, I have searched for the answer on the internet but