English 中文(简体)
页: 1
原标题:asp.net mvc - nested site deployment

我如何强制执行一种 as子刀切的申请,以指明子,而不是根子。

让我们说,我有网站:

我完全不同的是像p.net mvc应用程序,称为用户App和客户App。 他们之间没有共同之处。 我现在要部署这样的申请:

  1. http://mywebsite/UserApp/SomeController/SomeAction
  2. http://mywebsite/CustomerApp/SomeController/SomeAction

我采用上述办法。 但是,在部署之后,只有主页投入使用。 任何其他被驱使的控制者/行动仍然把一条根本的道路,而不是一条具体的道路。

问题回答

或许需要将这两个分数作为国际会计准则中的应用。

Slaks的答复是不够的,因为MVC的行踪是网络根上的“控制/行动”。

You could use the IIS routing module to rewrite paths so that http://yourWebSite/UserApp/SomeController/SomeAction is rewrited to http://yourWebSite:8080/SomeController/SomeAction and setup 2 websites on different ports internally.

或者,你可以修改湿重路线测绘。 它可以工作......。 在MSDN中寻找“MapRoute”。

Or you could create 2 websites with 2 different hosts.
This is not unusual for 2 unrelated websites :=)





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签