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've been searching for a solution online for quite some time but can't seem to find a decent answer, so I might try my luck here...

I'm trying to configure apache+tomcat so that my domain example.com is mapped to a tomcat webapp.
This is the easy part and I figured out I can accomplish this via:

ProxyPass /site ajp://127.0.0.1:8009/site
ProxyPassReverse /site ajp://127.0.0.1:8009/site

I can also access my tomcat itself (to deploy apps etc) via:

ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/

But what if I want my blog.example.com subdomain to be mapped to a wordpress instance? I really can't figure out how to accomplish this, while this is quite a basic setup I assume.

All tips and comments are appreciated a lot!

share|improve this question
add comment

migrated from stackoverflow.com Apr 3 '11 at 22:05

This question came from our site for professional and enthusiast programmers.

2 Answers

Ruslan is right, you need separate virtual servers e.g. a virtualHost block with a specific Servername directive, and then it's own reverse proxy directives.

share|improve this answer
add comment

I would add another virtual host for blog.xxx.com , and set all you need to use your wordpress instance. So you have one vhost for xxx.com (with ajp and all stuff like that) and another for blog.xxx.com.

share|improve this answer
add comment

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.