4

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.

2
  • I updated your title to better reflect your question.
    – John Conde
    Commented Jun 19, 2011 at 20:55
  • @Mr. Flibble: out of curiosity, why don't you want to use blog.domain.com to host your blog? Commented Jul 5, 2011 at 17:37

2 Answers 2

3

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.

3
  • 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
    Commented Jun 20, 2011 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. Commented Jun 21, 2011 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
    Commented Jun 21, 2011 at 14:21
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.