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 am running a play framework java application in a linode instance. My virtual host entry looks as follows.

<VirtualHost *:80>
  ProxyPreserveHost On
  ServerName www.example.com
 <Proxy *>
    Order Allow,Deny
    Allow From All
 </Proxy> 
 ProxyPass / http://127.0.0.1:9000/
 ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>

Now I want to install a wordpress blog and access it from www.example.com/blog. I have copied the wordpress folder to /var/www/blog. I am not able to access the URL www.example.com/blog as the request is going to the play framework. I would like to know how to resolve this.

Thanks in advance.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can use the ProxyPass directive to exempt URLs from proxy processing like this:

ProxyPass /blog/ !

There are additional examples in the ProxyPass documentation. So something like:

ProxyPass /blog/ !
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
share|improve this answer
    
Worked like a charm. Thanks. –  Steve May 21 '12 at 20:00

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.