Subdomain to subdirectory external site

Hi I need to have a wordpress site that is hosted on a lamp server be mapped to a subdirectory of a windows site. Can this be done?

Here's what I need to achieve:

Have this subdomain:

1. blog.domain.com (wordpress site on lamp server)

Map to this subdirectory:

2. www.domain.com/blog (classic asp, iis 6 site on a windows 2003 server).

Finally, the goal is to have all the blog posts work under this new url as well (e.g., www.domain.com/blog/post_name)
robanddeannaAsked:
Who is Participating?
 
Steve BinkCommented:
Though there are a few minor differences, PHP works just as well on Windows as it does on Linux.  Wordpress, as a PHP application, will work anywhere PHP is working.
0
 
Steve BinkCommented:
It sounds like what you want to do is *move* the site to the Windows server.  In that case, simply set up a new site in IIS.  Make it respond to the subdomain, and place its document root in the /blog subdirectory.
0
 
robanddeannaAuthor Commented:
I considered that already but unfortunately, it's not the preferred route by the team (since it's php/wordpress). Therefore, the goal is to keep it on the lamp server.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Steve BinkCommented:
DNS just doesn't work that way.  There is no way to say "my domain points to this server, except this directory which is over at this other server".  You could use a redirection, but that would require using another subdomain, e.g., blog.domain.com.  

You could also set up /blog on the Windows server to trigger a proxy request to the LAMP server, but that is much more hassle than it is worth.  

What reasons do the team for not wanting to consolidate the server?
0
 
robanddeannaAuthor Commented:
Because wordpress & php is native to linux. I've considered that option (hosting it on windows) myself but wasn't sure how compatible the two are on iis 6 & windows 2003....
0
 
robanddeannaAuthor Commented:
Thank you Steve for all the feedback/help. I'll see if we can revisit this as an option.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.