如何在ASP.NET中使用htaccess [英] How to use htaccess in asp.net

查看:88
本文介绍了如何在ASP.NET中使用htaccess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在asp.net上开发产品.用户在此网站上注册时,我希望用户拥有自己的空间,其子域名为user1.domain1.com,user2.domain2.com.

我听说有了htaccess,我可以做到这一点.但是我不知道如何在asp.net中使用它.有人能建议我吗?或还有其他方法可以做到吗?

请帮助我.

Hello,

I am working on product in asp.net. When user register on this website, I want the users to have their own space with subdomain name like user1.domain1.com, user2.domain2.com.

I heard that with htaccess i can do this. But i dont know how to use this in asp.net.can any one suggest me? or is there any other way to do this?

please help me.

推荐答案

是的,这是一个灵活的功能,但仅适用于Apache,与平台无关.使用Mono和Apache mod_mono模块的Linux上的Apache可以使用ASP.NET.我不确定Apache对于Windows对ASP.NET的支持(对于Web托管服务不是很典型).我从来没有尝试过这个机会(尝试会很好),无法告诉您它的质量如何.

参见:
http://en.wikipedia.org/wiki/Mono_(软件) [ http://www.mono-project.com/ [ http://en.wikipedia.org/wiki/Mod_mono [ http://www.mono-project.com/Mod_mono [
Yes, this is a flexible feature, but only of Apache, regardless of the platform. ASP.NET is possible for Apache on Linux using Mono and Apache mod_mono module. I''m not sure how about support of ASP.NET by Apache for Windows (it''s not very typical for Web hosting services). I never tried this opportunity (would be good to try), cannot tell you how it its quality.

See:
http://en.wikipedia.org/wiki/Mono_(software)[^],
http://www.mono-project.com/[^],
http://en.wikipedia.org/wiki/Mod_mono[^],
http://www.mono-project.com/Mod_mono[^].

—SA


在此处参阅类似的 /a> [ ^ ]

有用的链接
链接1 [链接2 [
See the similar discussion here[^]

Useful Links
Link 1[^]
Link 2[^]


这篇关于如何在ASP.NET中使用htaccess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆