Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a site, www.domain.com. I want to set up a blog which runs on a separate server than the main site, and have it available a the domain www.domain.com/blog.

How would I go about doing this? If it were blog.domain.com, then it would be easy, but with www.domain.com/blog I'm not so sure.

I'm using Windows Server 2008 / IIS 7.

share|improve this question
    
I updated your title to better reflect your question. –  John Conde Jun 19 '11 at 20:55
    
Much better, thank you. –  Mr. Flibble Jun 19 '11 at 20:56
    
@Mr. Flibble: out of curiosity, why don't you want to use blog.domain.com to host your blog? –  Marco Demaio Jul 5 '11 at 17:37
add comment

2 Answers 2

This can be done with URL Rewrite module using "Reverse Proxy" kind of rule (when incoming request is handled/internally redirected to be processed by another back-end server), but for this you will also need an Application Request Routing to be installed. Unfortunately I have not dealt with AAR much and cannot really advise further. With Apache it is easier -- it is part of the default functionality (as long as you enable right module).

Keep in mind -- this will be slower than hosting the blog on the same server, as request has to travel to main server first, then to another (blog) server and back, and only then the response/page will be sent back to the user.

UPDATE: Here is the article that describes how this can be done with details and illustrations (it is dated Nov 2009 but everything still should be the same or very similar): Reverse Proxy with URL Rewrite v2 and Application Request Routing.

share|improve this answer
    
If you cannot/do not want to use AAR, but can install some software on your IIS 7 server, then you may also look at Helicon Ape. "Helicon Ape provides support for Apache .htacces and .htpasswd configuration files in Microsoft IIS. It literally implements Apache configuration model and nearly all Apache modules in a single IIS add-on, not only making IIS compatible with Apache, but also extending it’s functionality by a number of highly essential features." –  LazyOne Jun 20 '11 at 15:48
    
Thanks LazyOne. I tried out the procedure in 'Reverse Proxy with URL Rewrite v2 and Application Request Routing'. It kind of works, but leaves a lot of things broken - image tags etc. I guess with a bit of work it could be usable. –  Mr. Flibble Jun 21 '11 at 14:06
    
You may want to create Outbound URL Rewrite rule that is applied to the headers or the content of an HTTP response (the bottom part of URL Rewrite module interface) to fix such image URLs on blog pages. Just keep in mind that this sort of rewriting is MUCH slower compared to the incoming URL Rewriting rules (obviously, as you have to process whole page compared to just URL) which will add even more delay when serving such blog pages. This should work, although I have not used them myself (no reason). –  LazyOne Jun 21 '11 at 14:21
add comment

I don't think you can do this. I just ran into the same type of thing because I wanted to run a Wordpress blog but my site was hosted on a shared Windows host. I ended up moving my site to Rackspace's cloud hosting so I had my own dedicated server and installed the Wordpress dependencies on Windows.

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.