Mono Support URL Rewriting and Adding Custom subdomain  

Viewed 97351 time(s), 12 post(s), 9/5/2011 7:49:29 AM - by adisoft
9/5/2011 2:05:17 PM
15993 Reputation 2214 Total posts

Hi,

I have asked you if you managed IIS part of this task and you didn't mentioned anything about it, so I supposed you did solve that part. Ok, now you need a sample on how to do this, well here it is. This is a simple way of solving your task but note that this isn't related to the MonoX.

Basically it comes down to this:

Setting up DNS
 
If your DNS supports wildcard syntax, you’ll be able to do this.   Basically you just want to forward all requests to *.yourdomain.com to yourdomain.com.  If your ISP’s dns doesn’t support the wildcard syntax, you could handle your own DNS on your server.

some IIS configurations and a custom HttpModule, please read the article and get back to us if you need anything else.

Regards

11
9/5/2011 2:30:00 PM
7207 Reputation 956 Total posts

In addition to the answer below - which sets up a DNS infrastructure - you will need to implement something similar to the solution described in this article: Hosting multiple applications in MonoX       
The technique described there allows you to dynamically switch the active MonoX application based on the request URL. Each application has its own set of users, roles, pages, etc., but runs on a signle database.

12
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.