开发者

Slash in virtual directory name (IIS)

I have a website on IIS 6 running PHP. Let's say the address is:

http://mysite

I 开发者_JAVA技巧want to create a virtual directory to run an ASP.NET MVC 3 app under this address. I want the virtual directory to look like this:

http://mysite/api/v2

I cannot create a virtual directory called 'api/v2' because it contains slash. Is it possible to create virtual directory two levels down like this?


It know it is stupid but for some weird reason you cannot type / in IIS7 under virtual directory but you can copy/paste value like app/v2 into that textbox. hope this helps.


Checkout the following article for nesting virtual directories.


I have to create physical directory under the root called 'api' (this is possible in PHP), then create a virtual directory called 'v2' under that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜