English 中文(简体)
映射域域图到另一个域的子目录
原标题:Map domain to a subdirectory of another domain

我们的主要网站(www.example.com)在内部以IIS/ASP.NET服务器为主机,但我们最近创建了一个博客,外部以Linux/Apache配置(www.exampleblog.com)为主机。

目前,我们设法将博客绘制到我们主要网站的子域(blog.example.com),但我们希望将其绘制到子目录(www.example.com/blog)上。

这是可能的,如果是的话,如何做到这一点?

最佳回答

但让我想想你的博客是在PHP上开发的。

您主要需要做以下工作:

  1. Install PHP on you Windows box.
  2. Configure and active PHP in IIS.
  3. Create a folder in you website maybe you call it blog.
  4. From the IIS turn this folder to an App.

嗯,就是这样。

注意: 不知道您在博客中运行的平台是什么, 但主要的想法是配置窗口框来运行另一个网站, 如果是php, 你会找到很多这方面的例子 。

问题回答

如果您在博客网站后面有另一个网络服务器( Apache), 唯一的办法就是从 www.example.com/blog 转到另一个网络服务器。 您也可以使用包含博客网站( 位于另一个地址下) 的框架, 使用户无法在其浏览器的地址栏中看到另一个地址 。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签