|
Why am I getting a 500 Internal Server Error on my website?
By default, when your site is accessed via
a web browser (like Internet Explorer, Firefox, Opera, etc.), the AW GRUP
server tries to locate any of the following files (web pages) in the directory and displays its content:
- index.html
- index.htm
- index.php
- index.php3
- index.php4
- index.shtml
- default.html
- default.htm
- default.php
- home.html
- home.htm
- home.php
The above mentioned files are also referred as
the Home Page. The
order specified above is important as the server tries to locate your home page
in this exact order. If the server
can not locate your home page, the visitor will get a 500 Internal Server
Error.
In the unlikely event
that you have used more than one of the above file names, the same order will be
followed for selection of the home page. So, if you have a file named
index.htm as well as a file named home.html, then index.htm
will be your home page.
IMPORTANT
- You need to upload one of the above mentioned
files within the web directory for your site to be publicly accessible, when
someone simply types your domain name in the browser. The web directory is the
default directory, where all your files reside. Refer <#faq:819#>.
For example, if you have bought web hosting for the
domain name your-name.com and choose to upload a file called somename.htm in the
web directory. Then if a visitor visits http://www.your-name.com then they will encounter
the above mentioned error message since the
server did not find any home page (mentioned above). This content of
this file will
only be visible if someone types http://www.your-name.com/somename.htm.
In this case it would be advisable if you rename somename.htm to index.htm. This
would ensure that anyone visiting http://www.your-name.com would be able to view your site immediately,
instead of remembering the complete path http://www.your-name.com/somename.htm.
- The Server expects a home page to be present in every directory within the web directory,
so that the default webpage can be automatically displayed to the visitor.
For example, if you have web hosting for the domain name
your-name.com and choose to upload a file called somename.htm in a directory
called myfiles in the web directory. Then if a visitor visits
http://www.your-name.com/myfiles/ then
he will encounter an error since the
server would not find any home page (mentioned above). This file will
only be visible if someone types
http://www.your-name.com/myfiles/somename.htm.
|