MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

URL Rewriting and Adding Custom subdomain   (Mono Support )

Viewed 88469 time(s), 12 post(s) 9/5/2011 7:49:29 AMby adisoft

Related topics

khorvat

khorvat

9/5/2011 2:05:17 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
denis

denis

9/5/2011 2:30:00 PM
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.
This content has not been rated yet. 
7207 Reputation 956 Total posts
1 2