mod-proxy

Best practices for configuring Apache / Tomcat

好久不见. 提交于 2019-12-03 03:49:26
问题 We are currently using Apache 2.2.3 and Tomcat 5 (Embedded in JBoss 4.2.2) using mod_proxy_jk as the connector. Can someone shed some light on the the correct way to calculate / configure the values below (as well as anything else that may be relevant). Both Apache and Tomcat are running on separate machines and have copious amounts of ram (4gb each). Relevant server.xml portions: <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3" emptySessionPath="true" enableLookups=

Proxying with SSL [closed]

好久不见. 提交于 2019-12-02 17:52:46
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 /var/www/acme.com RewriteEngine On RewriteOptions Inherit RewriteRule ^/(.*) http://win.acme.com/$1 [P] </VirtualHost> now I want to add SSL support; the definition becomes: <VirtualHost 192.168.0.2:443> ServerName www.acme.com DocumentRoot /var/www/acme.com GnuTLSEnable On

Apache ProxyPass and Sessions

北城余情 提交于 2019-12-01 16:22:26
So I'm using Apache to proxy a specific folder to a Glassfish instance. The rules in my conf are: ProxyPass /folder http://localhost:28083 ProxyPassReverse /folder http://localhost:28083 ProxyPassReverseCookiePath /folder http://localhost:28083 It's working fine, except for the sessions. For every subfolder a new session is created. So while I stay in one folder, the session persists, but as soon as I jump into another folder a new session is made. How can I have one session for all subfolders? As covener already mentioned, the second parameter of ProxyPassReverseCookiePath should be a path.

How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

限于喜欢 提交于 2019-12-01 15:49:45
I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change. That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html. I would imagine I can setup a reverse proxy on IIS to accomplish this, similar to mod_proxy, but the Apache Tomcat Server throws a bit of a wrench into all of this. How can I setup

keycloak apache server configuration with 'Mixed Content' problems

a 夏天 提交于 2019-11-30 20:24:04
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/domains/dev.mydomain.com/apache/dev.mydomain.com.crt SSLCertificateKeyFile /opt/mydomain/domains/dev

502 proxy error in Express.js while integrating with Apache [closed]

穿精又带淫゛_ 提交于 2019-11-30 17:39:43
I am hosting apache and node.js server together with apache server proxying to node server.My framework is express.js and I am using amCharts.I have timeout for proxying set to 600.When I open my website I get only the static content and not the dynamic content of amCharts. This is my server side code: var express = require('express'); var routes = require('./routes'); var user = require('./routes/user'); var http = require('http'); var path = require('path'); var fs = require('fs'); var data = ''; var app = express(); var server = app.listen(3000); var io = require('socket.io').listen(server)

Reverse proxy with websocket mod_proxy_wstunnel

无人久伴 提交于 2019-11-30 12:48:36
I have a problem with the web sockets and my reverse proxy Apache, I have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel . The httpd.conf : <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.toto.fr ServerAlias toto.fr ProxyPass /my_app http://1X.X.X.1:8080/my_app ProxyPassReverse /web_pmr http://1X.X.X.1:8080/my_app ProxyPassReverseCookiePath /my_app / ProxyPassReverseCookieDomain localhost my_app ProxyRequests off ProxyTimeout 15 #WEBSOCKETS ProxyPass /my_app/BasicWebsocketServlet ws://1X.X.X.1:8080/my_app/BasicWebsocketServlet retry=0

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

末鹿安然 提交于 2019-11-30 12:39:04
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 absolute URIs in php, javascript and css, so I want to prepend my own root location to the URI in

lighttpd as reverse-proxy

北慕城南 提交于 2019-11-30 11:48:43
问题 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

Retain original request URL on mod_proxy redirect

江枫思渺然 提交于 2019-11-30 07:06:18
问题 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