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-02-17 05:09:57
Point:500 Replies:9 POST_ID:828886USER_ID:11059
Topic:
PHP Scripting Language;Apache Web Server;Linux
I got one free domain name from no-ip.com and it will redirect to
one my IP address, for example,212.1.188.68 which is on my linux apache server.
When I type the IP, 212.1.188.68 on my Chrome browser , it will echo one error page about 403 http error
I just want to know where is http://212.1.188.68/index.html file located on my server.
In other words, what the really first location it will go on my server when I hit the IP
on browser
I have checked /usr/local/apache/htdocs/index.html and
/etc/httpd/httpd.conf from which I could NOT find the corresponding page
matched to echo error output on my browser.
Note: My domain name is refered to other IP NOT 212.1.188.68 and I have
two dedicated IP. when I access SSH shell, and type hostname -i command, it will
show 212.1.188.68 IP address
Please advise
Duncan
one my IP address, for example,212.1.188.68 which is on my linux apache server.
When I type the IP, 212.1.188.68 on my Chrome browser , it will echo one error page about 403 http error
I just want to know where is http://212.1.188.68/index.html file located on my server.
In other words, what the really first location it will go on my server when I hit the IP
on browser
I have checked /usr/local/apache/htdocs/index.html and
/etc/httpd/httpd.conf from which I could NOT find the corresponding page
matched to echo error output on my browser.
Note: My domain name is refered to other IP NOT 212.1.188.68 and I have
two dedicated IP. when I access SSH shell, and type hostname -i command, it will
show 212.1.188.68 IP address
Please advise
Duncan
Author: duncanb7 replied at 2024-02-17 07:40:34
I could not find documentroot related to the IP in httpd.conf
So now I add the virtualhost for such IP in httpd.conf to
redirect to other location in order to solve the issue temporaily
Thanks for your reply and have a nice day
Duncan
So now I add the virtualhost for such IP in httpd.conf to
redirect to other location in order to solve the issue temporaily
Thanks for your reply and have a nice day
Duncan
Accepted Solution
Expert: Gary replied at 2024-02-17 07:35:31
167 points GOOD
In shell run
updatedb
then run
locate httpd.conf
This will list the location of the file, open it and search the file for documentroot, this will give you your web root
Also look for
<Directory
as the document root maybe different if you have the virtual hosts set up.
updatedb
then run
locate httpd.conf
This will list the location of the file, open it and search the file for documentroot, this will give you your web root
Also look for
<Directory
as the document root maybe different if you have the virtual hosts set up.
Expert: Sandy replied at 2024-02-17 07:23:00
Author: duncanb7 replied at 2024-02-17 06:46:38
I try to change it at /home/<username>/public_html, but the output still the same 404
error page .
error page .
Expert: Sandy replied at 2024-02-17 06:04:47
then it is under /home/<username>/public_html
TY/SA
TY/SA
Author: duncanb7 replied at 2024-02-17 05:35:26
Dear hanknight,
there is too many index.php or index.html from those command you suggest . It might not be good way to do it
Be Reminded. I have used Cpanel before but not now since it is expired , and
the Cpanel is still saved on my server (linux Centos6.5)
there is too many index.php or index.html from those command you suggest . It might not be good way to do it
Be Reminded. I have used Cpanel before but not now since it is expired , and
the Cpanel is still saved on my server (linux Centos6.5)
Assisted Solution
Expert: hankknight replied at 2024-02-17 05:31:22
166 points GOOD
Try one of these for a list of index.html files:
Author: duncanb7 replied at 2024-02-17 05:30:03
I try to change the file of index.php at /var/www/html but it is no
anything change , the browser get the same error
And the home page is also not in the case since the home page won't
echo 403 error page
my server is linux Centos6.5
Where is the file to save the IP 's document location file ?
anything change , the browser get the same error
And the home page is also not in the case since the home page won't
echo 403 error page
my server is linux Centos6.5
Where is the file to save the IP 's document location file ?
Assisted Solution
Expert: Sandy replied at 2024-02-17 05:24:44
167 points GOOD
it could be in /var/www/html or it could be in your user home directory.
TY/SA
TY/SA