Asked by duncanb7
at 2024-07-28 07:11:34
Point:500 Replies:3 POST_ID:828621USER_ID:11059
Topic:
Domain Name Service (DNS);Linux Networking;Apache Web Server
I get two dedicated IP for my one domain name on one VPX server.
When type the both IP address on browser , it will
go to the location at /usr/local/apache/htdocs/index.html
Both IP also go the same location.
And when type its domain name such as mysite.com, of
course it will go to my public_html/index.html that specified in httpd.conf
The question is that how can I let two IP address go to different folder ?
Where the apache setup is doing for that ?
Since I need to assign new other domain name besides mysite.com to one
of 2 dedicated IP and going to differect folder later on
Now the seneriory is
mysite.com--> /home/mysite/public_html/index.html
212.1.210.209--> /usr/local/apache/htdocs/index.html
212.1.210.210--> /usr/local/apache/htdocs/index.html
My target:
mysite.com--> /home/mysite/public_html/index.html
212.1.210.209--> /home/mysite/public_html/index.html
212.1.210.210--> /home/secondsite/public_html/index.html
Please advise
Duncan
When type the both IP address on browser , it will
go to the location at /usr/local/apache/htdocs/index.html
Both IP also go the same location.
And when type its domain name such as mysite.com, of
course it will go to my public_html/index.html that specified in httpd.conf
The question is that how can I let two IP address go to different folder ?
Where the apache setup is doing for that ?
Since I need to assign new other domain name besides mysite.com to one
of 2 dedicated IP and going to differect folder later on
Now the seneriory is
mysite.com--> /home/mysite/public_html/index.html
212.1.210.209--> /usr/local/apache/htdocs/index.html
212.1.210.210--> /usr/local/apache/htdocs/index.html
My target:
mysite.com--> /home/mysite/public_html/index.html
212.1.210.209--> /home/mysite/public_html/index.html
212.1.210.210--> /home/secondsite/public_html/index.html
Please advise
Duncan