Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to adapt the an example for mass proxy: contains: /www/customers/1


RewriteEngine on

RewriteMap lowercase int:tolower

# define the map file
RewriteMap vhost txt:/www/conf/

# this does the file-based remap
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/docs/$1

Now, if I go to, nothing happens. What am I doing wrong? Of course I restarted the server.

share|improve this question
What do you mean by 'nothing happens'? Are there any error messages displayed? Are there any relevant messages in your log files ? – Iain Aug 2 '12 at 21:26
No error message is displayed! I'm just redirected to:, which means the site is not found (of course as it does not exist yet). I just want to test the mapping, and afaik the mapping should already take place to /www/customers/1 which should be shown in browser address line, regardless if it could be resolved? – membersound Aug 2 '12 at 23:25
@membersound Why would it be shown in the browser address line? That only changes when you redirect. You're not redirecting - are you intending to? Can you clarify what you're actually trying to achieve? – Shane Madden Aug 3 '12 at 5:04
Sounds like your DNS is not set up correctly. The host names you want to test somehow have to point to your test server. – Oliver Aug 3 '12 at 5:44
Oh sorry, I was confused. Yes of course it should not show in the browser as I do not want to redirect, just proxy. Anyhow the proxying does not take place, and logs do not contain any hints... – membersound Aug 3 '12 at 6:12
up vote 1 down vote accepted

This looks like a DNS error. Ensure that correctly resolves to the IP address of the machine doing the proxying.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.