mod-proxy

Apache in front of Glassfish v3 with SSL using mod_proxy_ajp

女生的网名这么多〃 提交于 2019-12-04 16:59:35
I hope here are some cracks around that can easily solve the issue I am struggling with even after searching in several forums: I need to place a Glassfish v3 application server behind an Apache 2.2.x webserver as some pieces my webhoster provides, such as webmail, are running on the webserver (so I cannot shut this down). Consequently, I have decided to use the newer solution “mod_proxy_ajp” (which ships with Apache out of the box) instead of more complex “mod_jk” to pass requests through Apache to Glassfish. What I did until now is this: Apache includes “/etc/httpd/conf.d/proxy_ajp.conf”

Ajp invalid message received with signature

五迷三道 提交于 2019-12-04 16:34:49
问题 I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy. Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml. After the server starts, the logs are filled with the following message: Severe: Invalid message received with signature 20599 com.apache.coyote.ajp.AjpMessage processHeader There are no requests sent to the web or tomcat server and it still throws that error. Access logs in tomcat and apache show that no request is coming in. What is causing the invalid

Remove basic authentication header with apache mod proxy

喜你入骨 提交于 2019-12-04 16:33:42
问题 I have a HTTP Basic secured website. I hide a Tomcat application server with mod_proxy. Can I remove the HTTP Basic header? The Tomcat application reads the header and returns 401 not authorized. Basic auth isn't needed because the application uses cookie sessions. So I think just removing the headers would be fine. 回答1: Make sure mod_headers is enabled. An example config: <VirtualHost *:80> ServerName something.example.com ServerAdmin admin@example.com ProxyRequests Off ProxyPreserveHost Off

Locally 401 Working, Staging Server getting a 302 instead

折月煮酒 提交于 2019-12-04 14:23:47
I'm probably not going to get all the required info needed to help the first stab but I'll do the best I can and edit this as we go along. I've got a Grails 1.3.7 application using Spring-Security-Core plugin. I'm working on code that deals with session timeouts and ajax requests. In the LoginController, I have the following: def authAjax = { session.SPRING_SECURITY_SAVED_REQUEST_KEY = null response.sendError HttpServletResponse.SC_UNAUTHORIZED } In a global JavaScript file, I have the following: $.ajaxSetup({ error: function(xhr, status, err) { if (xhr.status == 401) { $('#login-dialog')

Understanding mod_proxy and Apache 2 for writing a comet-server

走远了吗. 提交于 2019-12-04 03:56:34
I currently try to implement a simple HTTP-server for some kind of comet -technique (long polling XHR-requests). As JavaScript is very strict about crossdomain requests I have a few questions: As I understood any apache worker is blocked while serving a request, so writing the "script" as a usual website would block the apache, when all workers having a request to serve. --> Does not work! I came up with the idea writing a own simple HTTP server only for serving this long polling requests. This server should not be blocking, so each worker could handle many request at the same time. As my site

WebSphere Portal behind reverse proxy and getServerPort()

馋奶兔 提交于 2019-12-03 21:19:27
I have problems accessing WebSphere Portal which is deployed behind reverse proxy (using Apache). The problem is that while inspecting HTTP requests issued by browser, some requests are targeted at proxy, and some directly at WebSphere Portal. My Apache configuration: ProxyPassReverseCookieDomain backend-server proxy-server ProxyPass / http://backend-server:10039/ ProxyPassReverse / http://backend-server:10039/ The problem is, some generated resources contained absolute URIs targeting at backend-server:10039... What else should I configure to properly access WebSphere Portal behind reverse

OAuth token validation from HAProxy or Apache mod_proxy

只谈情不闲聊 提交于 2019-12-03 16:03:08
I have a microservice deployed on 3 nodes sitting behind a HAProxy load balancer all inside internal network. The services are protected using OAuth2 APIS authorization server. Now, I want to move the HAProxy to DMZ. And I want to reject requests that do not have auth token in the header and also validate the auth token by calling OAuth REST API. In HAProxy I couldn't find a way to do this. There is an option httpchk which can be used for healthcheck. I'm looking for a similar feature that can be used to validate each incoming request. Can anyone please help suggest me on how to implement this

How to use ProxyPass to serve static files through Express?

ぃ、小莉子 提交于 2019-12-03 13:44:15
I'm using Apache with mod_proxy to serve my Node app with Express, ProxyPass /nodeapp http://localhost:3000/ ProxyPassReverse /nodeapp http://localhost:3000/ but the static JS and CSS are being requested from the wrong place. For example, I want the CSS from http://homepage/nodeapp/css But it's being requested from http://homepage/css H. Jones I solved this problem in my environment by using the HTML "Base" tag in my application's index.html, and then ensured that all links within my application were relative. This will help ensure the browser requests the appropriate path. It is worth noting

Ajp invalid message received with signature

吃可爱长大的小学妹 提交于 2019-12-03 09:45:24
I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy. Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml. After the server starts, the logs are filled with the following message: Severe: Invalid message received with signature 20599 com.apache.coyote.ajp.AjpMessage processHeader There are no requests sent to the web or tomcat server and it still throws that error. Access logs in tomcat and apache show that no request is coming in. What is causing the invalid message error? Here is the configuration : httpd.conf ProxyPass /wl ajp:// ip : port /wl

Proxying with SSL [closed]

a 夏天 提交于 2019-12-03 05:30:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a Linux host running Apache and a Windows host running IIS. I have a domain that points to the Linux host and need to relay (proxy) requests for it to IIS; I thus have the following virtual host definition in Apache (which works just fine): <VirtualHost 192.168.0.2:80> ServerName www.acme.com DocumentRoot