mod-proxy

keycloak apache server configuration with 'Mixed Content' problems

纵饮孤独 提交于 2019-11-30 04:57:54
问题 have a problems configuring keycloak behind my apache server, Mixed Content: The page at 'https://dev.mydomain.com/auth/admin/master/console/' was loaded over HTTPS, but requested an insecure script 'http://dev.mydomain.com/auth/resources/1.7.0.final/admin/keycloak/js/controllers/groups.js'. This request has been blocked; the content must be served over HTTPS. My apache configuration is, ServerName dev.mydomain.com ServerAdmin dev@mydomain.com SSLEngine on SSLCertificateFile /opt/mydomain

lighttpd as reverse-proxy

房东的猫 提交于 2019-11-30 00:26:45
DeviceA serves as a reverse-proxy and is supposed to forward requests as follows: 192.168.1.10/DeviceB ==> 192.168.1.20/index.html 192.168.1.10/DeviceC ==> 192.168.1.30/index.html Both index files are located under /var/www and are static "Hello world!" pages. The problem is that I can't access those files through DeviceA, but if I call a test service also running on DeviceC (listening on port 12345) everything works fine. Am I wrong saying that the web server on DeviceB, DeviceC should respond with index.html if a request comes in on port 80 ??? lighttpd.conf DeviceA @192.168.1.10 server

Bad Gateway 502 error with Apache mod_proxy and Tomcat

泪湿孤枕 提交于 2019-11-29 20:15:07
We're running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a lot of 502 errors like this: Bad Gateway! The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /the/page.do. Reason: Error reading from remote server If you think this is a server error, please contact the webmaster. Error 502 Tomcat has plenty of threads, so it's not thread-constrained. We're pushing 2400 users via JMeter against the app. All the boxes are sitting inside our firewall on a fast unloaded network, so there shouldn't be any network problems.

How to rewrite / proxy an Apache URI to an application listening on a specific port / server?

扶醉桌前 提交于 2019-11-29 18:17:36
问题 They say that Apache's mod_rewrite is the swiss-army knife of URL manipulation, but can it do this? Lets say I want to add a new application to my Apache webserver, where the only configurable option of the app is a port number. I want to use & give out URLs of the form "http://hostname.example.com/app" rather than "http://hostname.example.com:8080". This would ensure that clients would be getting through the institution's firewall as well, and it's generally tidier. My application includes

Tomcat stops responding to Apache

时光毁灭记忆、已成空白 提交于 2019-11-29 13:08:46
问题 I'm trying to resolve an issue about connecting Apache and Tomcat with mod_proxy_ajp. In my case, the Tomcat stops to response the Apache, and the apache log prints logs error message like this: [Mon May 06 15:22:47 2013] [error] ajp_read_header: ajp_ilink_receive failed [Mon May 06 15:22:47 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from [::1]:18009 (localhost) I have no idea. Anyone can help me? 回答1: Try this : try with increase the number of

Apache subdomain redirect into Tomcat

元气小坏坏 提交于 2019-11-29 04:13:03
问题 I'm pretty new to Apache HTTP, and sysadmin-ing in general, so i have this question I have a domain (www.doamin.com) with an Apache listening to port 80, also I have an Apache Tomcat on the same domain configured to port 8080. Is there a way to configure a subdomain (i.e, tomcat.domain.com) so it will redirect into my tomcat specific application, so user can access applications through app1.domain.com and app2.domain.com (and it will be served by Tomcat)? I've seen a lot of mentioning to mod

Retain original request URL on mod_proxy redirect

≡放荡痞女 提交于 2019-11-29 01:11:19
I am running a WebApplication on a Servlet Container (port 8080) in an environment that can be accessed from the internet (external) and from company inside (intenal), e.g. http://external.foo.bar/MyApplication http://internal.foo.bar/MyApplication The incomming (external/internal) requests are redirected to the servlet container using an apache http server with mod_proxy. The configuration looks like this: ProxyPass /MyApplication http://localhost:8080/MyApplication retry=1 acquire=3000 timeout=600 Keepalive=On ProxyPassReverse /MyApplication http://localhost:8080/MyApplication I am now

Apache port forward [closed]

Deadly 提交于 2019-11-28 23:14:59
问题 I have apache couchDB active on http://localhost:5984/ which i need to access at http://localhost:80/couch/. I need to setup a reverse proxi for this. Need help with the configuration settings. PS: Whats the best resource to learn about apache? 回答1: Setting up the proxy To set up a reverse-proxy with Apache2, you first need to enable the Apache proxy module and virtualhosts. To enable the proxy module (mod_proxy), edit the Apache configuration file (Apache/conf/httpd.conf) and uncomment the

Apache2 Reverse Proxy to an end-point that requires BasicAuth but want to hide this from user

岁酱吖の 提交于 2019-11-28 16:54:01
Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding the port, simplifying url, simplifying NAT, etc). However, what I would like to do is be able to use Apache to handle the authentication so that: I don't have to give out single password to everyone I can have multiple usernames and passwords using Apache's BasicAuth For internal users, I don't have to prompt for a password EDIT: Second part about

Bad Gateway 502 error with Apache mod_proxy and Tomcat

若如初见. 提交于 2019-11-28 15:35:55
问题 We're running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a lot of 502 errors like this: Bad Gateway! The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /the/page.do. Reason: Error reading from remote server If you think this is a server error, please contact the webmaster. Error 502 Tomcat has plenty of threads, so it's not thread-constrained. We're pushing 2400 users via JMeter against the app. All the boxes