1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Multiple IPs, One Document Root ??

Discussion in 'Plesk for Linux - 8.x and Older' started by DigitalCrowd, Jun 5, 2006.

  1. DigitalCrowd

    DigitalCrowd Basic Pleskian

    24
    23%
    Joined:
    Jul 5, 2002
    Messages:
    58
    Likes Received:
    0
    Okay...

    I've got a "backwords" situation from the norm and so Im looking for ideas and solutions.

    I have two domains that will become one site, yet retain their unqiueness. I have managed to do this by using the Plesk domain alias feature and the two domains come in on the single IP to a single document root and I serve out pages based on HTTP_HOST matches.

    Works perfectly.

    Now.. What I want to do is have the two different domains resolve to two different IP addresses, but I don't want to run into a permissions and Plesk (oh, FU, Im going to rewrite your settings to default) nightmare by having two accounts (ie licenses) setup, one with each domain on each ip.

    So... I *know* I can just modify the httpd.include to add in the other IP address, restart apache and call it day.

    BUT... I don't want to have anything rewritten which means I need to use the vhost.conf. Any suggestions on how to implement this properly.

    Also, now, when you go to the IP address it shows up with teh Plesk splash page, not the sites primary page. I'd want this to be resolved as well.
     
  2. DigitalCrowd

    DigitalCrowd Basic Pleskian

    24
    23%
    Joined:
    Jul 5, 2002
    Messages:
    58
    Likes Received:
    0
    Nevermind.

    I was able to setup a second domain/account in plesk with an exclusive IP address. Then, using vhost.conf I was able to over-ride the httpd.include for everything.

    This worked out best, as I was able to get seperate log files which I kinda wanted but hand't got to yet.

    Seems to be working perfectly.
     
Loading...