Questions tagged [mod-proxy]

mod-proxy is the proxying module for the Apache HTTP server.

mod-proxy is the proxying module for the Apache HTTP server.

Questions with this tag should relate directly to the use of this module. Questions about mod-proxy-balancer should use that tag rather than this one.

848 questions
0
votes
1 answer

Access particular server behind load-balanced tomcat

I'm building production configuration where 2 tomcats are sitting behind the apache with load-balancer and mod_proxy. What I need is the script which checks whether particular instance of tomcat is running. The problem is I use AJP connector in…
barabaka
0
votes
1 answer

Restrict RESTful endpoint on tomcat to local webapp

Is there a mechanism built into Tomcat or Apache to differentiate between a local web application calling a local web service vs a direct call to a webservice? For example, a single server has both apache and tomcat servers with a front end web…
TimK
  • 819
  • 1
  • 10
  • 22
0
votes
3 answers

Apache 2.x and mod_proxy produce redirect loop if user is not authenticated

I have an application with spring security. I case the user is not authenticated he is redirected to bo/login page. The problem is that the way i setup the apache web server in front of the tomcat i produce infinite redirection loop:
mspapant
  • 1,860
  • 1
  • 22
  • 31
0
votes
1 answer

Obtain part of url in proxy balancer from one balancer member

I have cluster setup of Apache server . Behind this I have 2 Jboss instances which is load balanced by apache. The configuration look somewhat like the below ServerAdmin admin@example.com ServerName www.example.com …
0
votes
1 answer

Sub-domains for Jetty apps with Apache mod_proxy without context name

This question has been asked before, and, in resume I want configure this scenario: 1 - I have one Jetty 7 server with many applications, e.g: app1, app2, app3, etc. 2 - I have one main domain, and, one sub-domain per Jetty application,…
Carlos Spohr
  • 507
  • 11
  • 24
0
votes
1 answer

Proxy port without changing URL in apache

is there a way to proxy URL to another port in apache? For example I would like to (reverse) proxy URL: http://*.localhost/engine.io/?EIO=2&transport=polling from port 80 to port 8080 without changing…
Kamil
  • 1,633
  • 2
  • 21
  • 24
0
votes
1 answer

AJP URL encoding

I am having an issue with URL encoding. When I am executing URL on browser, server is encoding it again and again, however the url is already encoded to UTF-8. eg. http://test.com:80/?gotoUrl=http%3A%2F%2Fclosewindow.xyz.com&modal=true I am getting…
Arsalan
  • 15
  • 1
  • 7
0
votes
1 answer

Apache Mod Rewrite - Return url is not ok

I've been searching around for a time, and I can't find the right solution to my case. So here's my case : I've installed a server in my company on which I've an application and a apache server used as a proxy. This server has access to some…
0
votes
1 answer

How do I redirect subdomain to subdirectory (with default folder) on htaccess without change address

I'm trying to do a Rewrite subdomains to subdirectories on htaccess. Searching here I did the rule below: RewriteEngine On RewriteCond %{HTTP_HOST} !^(www)\. [NC] RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com\.br RewriteCond %{REQUEST_URI}…
0
votes
1 answer

Tomcat crashes after SocketTimeoutException

I'm running tomcat 7.0.2 on a debian lenny VPS with apache mod_proxy_jk, this is my AJP config:
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
0
votes
2 answers

Configure Apache to avoid cross domain call with Dart

I'm trying to configure Apache using mod_proxy to develop a Dart web app locally, but I can't seem to get it set up correctly. In my httpd.conf I've enabled the following lines: LoadModule proxy_module modules/mod_proxy.so LoadModule…
CorayThan
  • 17,174
  • 28
  • 113
  • 161
0
votes
1 answer

Apache HTTPD VirtualHost with Proxy to Tomcat and htaccess file not being checked

I have Apache fronting Tomcat and using *mod_proxy_ajp* to pass requests to Tomcat using the following in the VirtualHost config: Options +Indexes MultiViews AllowOverride All Order…
Doahh
  • 590
  • 1
  • 8
  • 20
0
votes
1 answer

Mod_proxy server flow for making HTTP requests via a hosted javascript app

Can anyone give a moderately detailed proxy server flow for making HTTP requests via a hosted javascript app, which is an angularjs/node app hosted on apache server port:3000 in my case. I'm calling an outside service and hitting the cross origin…
jp_inc
  • 345
  • 4
  • 14
0
votes
1 answer

URL/Apache redirection question. (domain+directory redirect to sudomain)

I have been trying to figure this out for about 2 hours now. A new requirement came up where it was asked of me to try to find a way to send requests from foo.bar.com/blah to blah.bar.com. Technically /blah doesn't exist, but I was hoping to have…
0
votes
1 answer

linux apache /etc/network/interfaces settings are not staying

I am using mod_proxy + virtual hosts on apache2 to redirect my subdomains like redmine.domain.com or git.domain.com to specific containers where the matching services are installed. So, each service is installed on a different container (a virtual…
valentin
  • 2,596
  • 6
  • 28
  • 48