Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
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
Expert: skullnobrains replied at 2024-07-28 12:57:59
if you want good documentation, less messy configs, and systems that do not do stuff without asking, you can try FreeBSD, OpenBSD, Solaris... but the apache config will be similar in any of those and in windows as well. i'm personnally a freebsd guy. beware that you'll have proper docs, and likely more direct control on your system, meaning that you will also do manually things that you are used to see working automatically. for example installing apache on FreeBSD will not configure it to start at boot time nor launch it.
best regards
best regards
Author: duncanb7 replied at 2024-07-28 11:29:30
Solved,
Now I know why there are many software kid or tool such as CPanel or DNS admin Myphpadmin, Awstate or WHM becoz a lot of people hate Linux command and documents
thanks for your reply
Now I know why there are many software kid or tool such as CPanel or DNS admin Myphpadmin, Awstate or WHM becoz a lot of people hate Linux command and documents
thanks for your reply
Accepted Solution
Expert: skullnobrains replied at 2024-07-28 11:21:39
500 points EXCELLENT
you need to configure your virtual hosts.
you should find them likely in the includes directory next to your httpd.conf (or possibly in httpd.conf itself, but this would be bad practice)
the servername directive under the <virtualhost ...> section is matched against the HOST HTTP header sent by the client (which corresponds to the domain name in the address bar) and the corresponding documentroot is used
you'll find the corresponding doc here, which is rather easy to figure out compared to bind's ;)
http://httpd.apache.org/docs/current/vhosts/name-based.html
you should find them likely in the includes directory next to your httpd.conf (or possibly in httpd.conf itself, but this would be bad practice)
the servername directive under the <virtualhost ...> section is matched against the HOST HTTP header sent by the client (which corresponds to the domain name in the address bar) and the corresponding documentroot is used
you'll find the corresponding doc here, which is rather easy to figure out compared to bind's ;)
http://httpd.apache.org/docs/current/vhosts/name-based.html