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

how can I force ProxyPass / ProxyPassReverse NOT to pass a request if the client provides a certain port?

The following passes EVERY request made to the machine correctly:

<VirtualHost _default_:443>
  SSLProxyEngine on
  ProxyPass / http://a.b.c.d:9000/
  ProxyPassReverse / http://a.b.c.d:9000/

Now I do not want to pass requests coming in for port 8080:

http://a.b.c.d:8080 should not be passed.

Is this possible?

share|improve this question

Your could try something like a catch all vhost after your :443 vhost declaration:

<VirtualHost _default_:*>
DocumentRoot /www/default

Then use AliasMatch or a RewriteRule to rewrite any request that hits this vhost to an information page or whatever you want. Here's a great reference page on vhost matching precedence:

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.