Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to adapt the an example for mass proxy: http://httpd.apache.org/docs/2.0/vhosts/mass.html

vhost.map contains:

www.customer-1.com /www/customers/1

httpd.conf:

RewriteEngine on

RewriteMap lowercase int:tolower

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

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

Now, if I go to www.customer-1.com, nothing happens. What am I doing wrong? Of course I restarted the server.

share|improve this question
1  
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: http://navigationshilfe1.t-online.de/dnserror?url=www.customer-1.com, 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

1 Answer 1

up vote 1 down vote accepted

This looks like a DNS error. Ensure that www.customer-1.com correctly resolves to the IP address of the machine doing the proxying.

share|improve this answer

Your Answer

 
discard

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.