what is the apache command to set a parked domain?

Discussion in 'Apache' started by JEET, Jun 5, 2010.

  1. #1
    Hello,
    I have to setup a parked page on my server, but having the hardest time figuring out the commands to do it.
    Would it be possible to set the parking in a way so I don't have to edit the httpd.conf everytime I need to add a domain to the list?
    for example: 1pDomain.com is parked on domain.com
    I guess what I want is that if domain2.com is also pointing to the same server, it also shows the page at 1pDomain.com automatically without having to edit any conf files. (domain2.com does not have a DOCROOT set on this server)
    Is this possible? if so how?
    Thanks :)
     
    JEET, Jun 5, 2010 IP
  2. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #2
    What you want is a cname DNS record I believe. That's unrelated to Apache.
     
    RectangleMan, Jun 6, 2010 IP
  3. MarcAlle

    MarcAlle Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    You'll want to setup a cname record. Make sure it points to the correct IP address, then you will need to add the domain to httpd.conf (copy and pasting would be easiest)
     
    MarcAlle, Jun 6, 2010 IP
  4. ShakataGaNai

    ShakataGaNai Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    /etc/apache2/sites-enables/000-default
    If you have something like that as your default, it'll "catch" all requests that hit apache that it does not have a specific config for (This includes IP only hits). Then you go setup /var/www (in this example) to have your parked HTML. You wont need to make _any_ changes to apache for any new domains you point at your server.
     
    ShakataGaNai, Jun 7, 2010 IP