Dear all,
I have a machie that has two ips. Let's just call it 128.1.1.1 (default) and 128.1.1.2.
For a reason I'd like to change ip for an/several add-on domain from 128.1.1.1 to 128.1.1.2, just some domains.
My question is, how can I change my domain (let's just call it 'domain.com') to another ip in the same machine.
If I can manually change the httpd.conf file, I'll be gladly edit it to add
and change vhost for domain.com to
But using WHM/CPanel, I'm not sure.
I had added "Listen 128.1.1.2:80" to to "Pre Main Include" in the "Include Editor" so that apache will also listen to 128.1.1.2.
Now apache will also listen to 128.1.1.2. My problem is my domain will still only listen to 128.1.1.1 from the virtual host section. If only I can change <VirtualHost 128.1.1.1:80> to <VirtualHost 128.1.1.1:80> for my domain.com, I'll be done with it.
Anyone has any solution(s)?
Thanks in advanced.
Regards,
Yoachan
I have a machie that has two ips. Let's just call it 128.1.1.1 (default) and 128.1.1.2.
For a reason I'd like to change ip for an/several add-on domain from 128.1.1.1 to 128.1.1.2, just some domains.
My question is, how can I change my domain (let's just call it 'domain.com') to another ip in the same machine.
If I can manually change the httpd.conf file, I'll be gladly edit it to add
Code:
Listen 128.1.1.2:80
Code:
<VirtualHost 128.1.1.2:80>
I had added "Listen 128.1.1.2:80" to to "Pre Main Include" in the "Include Editor" so that apache will also listen to 128.1.1.2.
Now apache will also listen to 128.1.1.2. My problem is my domain will still only listen to 128.1.1.1 from the virtual host section. If only I can change <VirtualHost 128.1.1.1:80> to <VirtualHost 128.1.1.1:80> for my domain.com, I'll be done with it.
Anyone has any solution(s)?
Thanks in advanced.
Regards,
Yoachan