• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Multiple IPs, One Document Root ??

DigitalCrowd

Basic Pleskian
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.
 
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.
 
Back
Top