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

I am creating a web application that at this point I am using shared hosting to host. Is there any way for me to give my users the option to point the a record of their domain to my website and I display a certain page when that website is visited?

Sorry this is kind of convoluted. I am relatively new to the server side of web applications so I don't know all the specific words for things (or how to do most of them ;).

share|improve this question
    
It probably is just a bad choice of words but DNS A records point to domains and hosts, not web pages. –  John Gardeniers Sep 23 '11 at 3:34
    
@JohnGardeniers very true... just changed that. –  chromedude Sep 25 '11 at 1:24

1 Answer 1

up vote 1 down vote accepted

If you are talking A records, and if I understand you correctly, I believe what you are looking for is IP-based virtual hosting. And yes, you can do this. I only have experience with Apache, but this should show you how to set it up:

http://httpd.apache.org/docs/current/vhosts/

You have to make sure that your server / OS is configured with an active network interface for the IP address in the A record, and you need to tell your web server to listen for incoming requests on this IP as well. If you do not have access to the OS or web server configs, you will have to see if this is something your hosting provider allows, and ask them to set it up for you.

Good luck.

share|improve this answer
    
He said he's on shared hosting, which all but guarantees he doesn't have access to the Apache config. –  ceejayoz Sep 23 '11 at 1:48
1  
@ceejayoz Two things. 1: Please re-read my last paragraph. Specifically, "... If you do not have access to the OS or web server configs, you will have to see ...". This acknowledges he may not have this option. 2. Note his excerpt "... at this point..." which implies he may, at some time in the future, have his own setup. He'll want to know this info. –  Larold Sep 23 '11 at 2:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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