0
votes
0answers
18 views

Can you do a masked URL rewrite to a different protocol (in Apache)

Apache 2.2.15; I want to do: RewriteCond %{HTTP_HOST} site1.com RewriteRule (.*) https://site2.com [R=301,P,L] But that does not work. I put the P in there thinking it might allow the mod_proxy ...
0
votes
0answers
41 views

Changing the current URL but serving content from another (same domain) - ProxyPass?

I've been banging my head against the wall with this for months now so I hope someone on here will be able to finally advise what is needed for this. I have some URL's like this:- ...
0
votes
0answers
50 views

Rewrite rule Mod_Proxy truncate file name

I search online for the solution, but nothing :(. I write this simple rule RewriteRule ^(.*)$ http://www.mysite.com/$1 [P,NE,QSA,L] In mysite.it i have an .htaccess with this rule and it's ok, but ...
0
votes
0answers
121 views

Reverse proxy 502 bad gateway

I have setup a subdomain to proxy my plesk panel, but when saving pages I am getting 502 Bad Gateway error instead of a completion message. I am running CentOS 6. Here is my vhost.conf configuration ...
0
votes
0answers
65 views

apache reverse proxy 404 image error

I have some error with my apache reverse proxy. Currently I am doing reverse proxy to 4 websites. 1.1.1.1/a 1.1.1.2/b 1.1.1.3/c 1.1.1.4/d I am having no problem when reverse proxy to a and b ...
0
votes
2answers
196 views

How to pass arguments through ProxyPass in Apache

What I'm trying to do and I've got stuck is: I've got apache server that will catch certain url's and for some of them, he will use ProxyPass (or mod_rewrite) to pass something as reverse proxy to ...
0
votes
1answer
173 views

Dynamicly reverse proxy a subfolder to subdomain in Apache

I would like to dynamically proxy sub folders to sub domains on another host. For example, I have the following reverse proxy setup for a single sub folder to sub domain: ProxyRequests Off ...
0
votes
0answers
163 views

URL Obfuscation: How to securely hide backend urls with nginx or apache?

Simply put: How can I obfuscate a url? Much like whats in this post but I need to have security also in mind. Lets say I have a url endpoint: ...
1
vote
2answers
313 views

Apache Redirect To Another Server with subdomain

I am currently running CentOS which hosts my web and gitlab server and a windows machine that is hosting a subsonic server. Currently, my ip points to the CentOS but does not redirect correctly. I am ...
0
votes
1answer
96 views

Apache: proxy an internal URL using regex

I have a few servlets listening on internal ports which are not accessible from outside. I use Apache's ProxyPass and ProxyPassReverse directives to serve them securely from port 443: ProxyPass ...
0
votes
0answers
13 views

Mod Rewrite: Add Language Prefix to Sub Directory [duplicate]

I am proxying a tumblr blog to a 3rd level deep subfolder. I am not sure if it is because of the directory path or the rewrite base, but I cannot seem to be able to remove the first blog. Instead of ...
0
votes
1answer
191 views

Apache mod_proxy+mod_rewrite = “Request exceeded the limit …” error [duplicate]

Good day, I'm using Apache as a reverse proxy for my Tornado app which runs on http://localhost:8090. I want Apache to proxy everything that arrives to /api/v2 through HTTPS to http://localhost:8090. ...
0
votes
1answer
95 views

apache mod_rewrite not working with mod proxy

I have a Rails 2.3.18 application running on http://0.0.0.0:3004/, it is running with Passenger module, and is deploying on Apache server with proxy module using the following configuration: ...
1
vote
2answers
2k views

Apache URL rewriting in reverse proxy

I'm deploying Apache in front of a Karaf-hosted application (Apache and Karaf are on separate servers). I want Apache to operate as a reverse proxy and also to hide part of the URL. The URL to get ...
0
votes
1answer
246 views

apache mod_proxy or mod_rewrite for hide a root of a webserver behind a path

I have 2 apache 2.2.21 one external and one internal, I need to map the internal apache behind a path in external apache, but I have some problems with absolute url. I tried these configurations: ...
0
votes
2answers
215 views

How do I configure my httpd rewrite/proxy to direct app1.example.com:443 to localhost:8080 and app2.example.com:443 to localhost:8081?

I have two Tomcat instances, one running on port 8080 and the other running on 8081. The both have deployed a web app called app.war but they are separated not only by different ports, but different ...
0
votes
0answers
223 views

Rewrite URL and keep POST data

We recently setup SVN for our web development. We'd like to be able to browse different branches/tags/trunk based on the URL you input on our dev server. So, for example, ...
0
votes
1answer
72 views

Are there security concerns when using Apache's mod_proxy as a gateway?

In order to cope with same-origins policy for AJAX calls I want to allow for mod_rewrite and mod_proxy to handle these calls in a similar way as described in another answer: rewriteEngine on ...
0
votes
1answer
59 views

Apache reverse proxy logic based on arbitrary header

I have apache running on a natting fw, that authenticates, reverse proxies, and provides an ssl wrapper for 2 webapps on the back end. This works with virtual hosting and proxies back based on the ...
0
votes
0answers
19 views

Apache mod_rewrite no further rules after proxy

I have this config RewriteCond %{HTTP_HOST} ^([^.]+)\.domain.com RewriteRule ([a-zA-Z0-9]+)/([a-zA-Z0-9]+) http://%1.$2.domain.com/$1 [P,L] which should show me the content of ...
0
votes
2answers
53 views

Apache Proxy to show another Website

I need to proxy the URL http://de.domain.com/article1/foobar/ to http://de.foobar.domain.com/article1/. How can I do this within getting and setting the subdomain language part? Examples: ...
0
votes
1answer
427 views

Using Apache httpd to redirect context path?

I'd like to proxy http://localhost:1006/ as http://example.com/public/ to the outside world. Here is my configuration: RewriteEngine On # Append a slash if necessary RewriteRule ^/public$ public/ ...
1
vote
1answer
109 views

Apache as a proxy fowarder to dynamic IP

I've looking aroung the web, but I can't figure out how to do what I'm looking for. So what I'm looking for is a proxy on which will foward the HTTP query based on the IP address I've put in the url ...
3
votes
1answer
42 views

Secure Apache when using mod_proxy_http and mod_rewrite

We have an Apache server that works as a proxy for apps running on different ports. For example: domain.com/app1/service1 > localhost:101 domain.com/app1/service2 > localhost:102 ...
0
votes
1answer
122 views

mod rewrite on apache on virtualhost to point to jboss

I set my apache server with ajp to connect to my jboss server and it is working fine. But when I go to my domain http://mydomain.com, I see the jboss root page. I was wondering if I could use mod ...
0
votes
2answers
939 views

How to Exclude an URL for Apache Mod_proxy?

We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load ...
0
votes
1answer
55 views

Apache rewrite rule (mod_proxy or mod_rewrite)

I need to rewrite a incoming request for a particular file. The file will have a suffix of .rtfx and I need to remove the host (http://www.host.com/) and replace it with another. Request *.rtfx file ...
1
vote
1answer
2k views

How to pass a request from one apache server to another

I have two Apache Servers with mod_proxy enabled. I want to know how to "pass the request" from "Apache Server A" to "Apache Server B" using the same port (80). In "server A" with internal ip: ...
1
vote
0answers
831 views

“ajp_read_header: ajp_ilink_receive failed”

We have Apache 2.2.24 in front of Tomcat 7.0.33. We're using AJP connectors with APR/native configured. I recently noticed a number of 500 errors in the Apache access logs for a small proportion ...
0
votes
1answer
38 views

Apache website Subfolder served by another server, not on the same local network

I'm setting up 2 ubuntu servers in different locations, one blog, one forum. I was going to use a subdomain for the forum but decided instead to make it a subfolder, example.com/forum. Is there a way ...
0
votes
0answers
197 views

How to redirect public URL request to private internal URL?

I've got a staging environment in my local network, all websites or apps are accessed by prefixing the final domain, this happens because we've got a DNS resolver running locally. For example, ...
0
votes
1answer
466 views

Transparent redirect or proxy in Apache, preserving incoming request

When a user first hits our server, we want to capture some information about the incoming request: GET parameters, Referer header, &c. The general idea is that when we get an incoming request that ...
2
votes
0answers
443 views

Apache 2.2: RewriteMap, ProxyPass interpolation and Keep-Alive

I have an Apache httpd used as a SSL reverse proxy frontend for a lot of backends. I compute the name of the backend from the path given by the user. e.g: https://myhostname.com/myaccount translates ...
0
votes
0answers
491 views

Apache 2.2 Proxy pass 503 errors - redirect/rewrite/proxy local path to another URL

I've been struggling with this for a while, but please forgive my ignorance, I'm fairly new to Apache 2.2 configuration.... Basically I am trying to somehow get a local path to forward/rewrite/proxy ...
1
vote
1answer
1k views

Mod-proxy with query string alternatives?

I am currently trying to use mod_proxy to make search requests on another server. The remote server requests must be structured as follows: ...
0
votes
3answers
221 views

Apache forwarding without redirecting (application won't follow redirects)

Recently we had to move /task to /public/task, and I'd like to configure Apache to redirect accordingly. However, using mod_rewrite, though it works in the browser, seems to break applications ...
1
vote
0answers
140 views

Apache: Setting up a reverse proxy configuration with SSL with url rewriting

There is a host: secure.foo.com that exposes a webservice using https I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service ...
1
vote
1answer
242 views

Why doesn't mod_proxy like recursion?

Disclaimer: I am very new to mod_proxy and somewhat new to apache in general. I have a very simple virtual host with the following configuration: <VirtualHost *:80> ServerName ...
0
votes
1answer
104 views

Apache2 with mod_proxy_ajp doesn't rewrite url

I have apache2 exposing a jboss through mod_proxy_ajp on / and serving some static content with ProxyPass /static ! ProxyPass / ajp://localhost:8009/ in proxy_ajp.conf. I need to redirect all the ...
0
votes
2answers
734 views

mod_rewrite+proxy closes connections to backend (keepalive)

We have a fairly typical setup: client <-> apache2 (2.2.22) <-> backend (*). Initially we were using mod_rewrite with the [P] flag in the simplest form: <VirtualHost *:80> ...
1
vote
2answers
506 views

mod_proxy map http://myserver/game to http://localhost:5732/?

N00b question. I have an URL http://myserver.com/game and would like to call an internal resource http://localhost:5732/ I tried: AllowCONNECT 5732 ProxyPass /game/ http://localhost:5732/ ...
0
votes
1answer
717 views

Apache ProxyPass/RewriteRule with p flag: Return no content when response has multi-part content type i.e.images

This is a continuation of a previous question which has been implemented with a little change. Following is the structure I am going to talk about. My goal is to create the Tunnel/Proxy. ...
2
votes
1answer
554 views

Obscuring tomcat context path in URL

I've setup an Apache reverse proxy to Tomcat that is working, in that I can load my url and get connection to the Tomcat backend. What I'm attempting to do now is rewrite the URL that a user sees in ...
2
votes
0answers
380 views

Changing a set-cookie header using mod_rewrite/mod_proxy

I have a bunch of cgi scripts, which are served using HTTPS. They can only be reached on the intranet, not from the outside. They set a cookie with the attribute 'Secure', so that it can only be send ...
3
votes
1answer
714 views

Understanding apache 2.4 mod_proxy_fcgi and RewriteRules in htaccess

We've recently switched one of our web servers to apache 2.4 and running PHP via php-fpm and mod_proxy_fcgi. Most everything works quite well, but there is one problem that I don't understand yet. One ...
0
votes
0answers
84 views

How can I get apache to stop logging header errors?

I may have this set up in a weird/bad way, but the idea I'm going for is to take wildcard subdomains and seamlessly convert them to a different URL behind the scenes that my app understands. My ...
1
vote
1answer
229 views

apache httpd Redirecting URL based upon Server Name

We have a Jira and a Confluence system at my work. Both are running on the same servers. The actual URL to access Jira and Confluence are: http://foauslxapp05:8080/jira ...
2
votes
1answer
614 views

apache - mod_rewrite + mod_proxy working in staging, not working in production ( [P] option ignored )

I have set up a redirect in my Apache virtual host serving several subdomains - call them a.example.com and b.example.com - serving a ruby on rails app. On my virtualhost config file I have this ...
1
vote
0answers
180 views

mod_rewrite: internal rewrite to (fake) clean URL not possible.

This is more a why question. I'm using a CMS that handles clean URLs via mod_rewrite out of the box. Website has a section /accessories that now has to be renamed to /store. Being on lazy mode, I ...
0
votes
1answer
110 views

Redirect stylesheets through secure url to a different server

I have a domain http://services.mydomain.com which has a secure login through a secure central provider (https://secure.mydomain.com) on a different server with proxypass. When I go to the login page ...