I'm creating a website where users can create their own space to publish content and a feature I'd like to implement is to allow these users point their own domain to its space inside my website. So if user "John" has created:
mysite.com/john
He could point its own domain:
thesplendidjohn.com
To mysite.com/john, BUT I need to keep the original (thesplendidjohn.com); no 301 redirect nor iframes.
I've been reading a lot and I think the way to go is reverse proxy using proxypass for apache, but I still need some advice to configure all this and a basic guidelines.
Briefing:
- Is proxypass the way to go? How do I implement it? (any basic tutorial to guide me? I tried official website but too many concepts I don't understand)
- I'm totally noob to DNS configuration, and I read that there are lots of different records (A, CNAME, MX)... If I implement all this I need to write a help document so users can point their domains to my website. What will need to do domain owners? Just point to my server IP? Touch any of these registers? Do I need to touch some DNS configuration on my side to allow new domains?
I forgot to mention I'm using Apache with PHP.