Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
IIS 7.5 Redirect / URL Rewrite to mobile version of website

I have a website setup at https://www.example.com, hosted on IIS 7.5.

I would like to add a mobile version of my application at https://m.example.com.

How do I create a seperate site that can be accessed via https://m.example.com?

share|improve this question

marked as duplicate by Jim B, Ward, Scott Pack, mailq, HopelessN00b Sep 25 '12 at 23:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'm not trying to redirect someone. Rather, I'm trying to figure out how to setup the "m." portion. How do I add m. to my url? –  Mono Developer Jan 31 '12 at 0:55

1 Answer 1

You need to add an entry to your DNS host, most of the time, your domain registrar can handle that.

If you're going to use a virtual host on IIS (I don't know how it works on IIS), you must set up a virtual host to listen on m.example.com and add an A/AAAA (IPV4/IPV6) entry to your DNS, like : m.example.com

So that when someone connect on m.example.com, it's redirected to the (same) server, and IIS does the switch with a virtual host listening for incoming HTTP connections with the 'Host: m.example.com' header.

I don't know if I am clear, but well, I tried !

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.