permission problem

like1

New member
Joined
Nov 9, 2009
Messages
1
Location
israel
i change my index.html to home.html and i get this message:
Forbidden
You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
i change the permission to 755 and it still write me the message.
what i have to do?
 
Hey,

You will have to define "home.html" in the httpd.conf file to allow that filename.

The line you are looking for is the "DirectoryIndex" line...

It should look something like this:

DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi

Add your "home.html" to it...

Of course you could simply change it (home.html) back to index.html...

David
 
  • Like
Reactions: Kal
@skruf, It's likely that user like1 is a site owner and doesn't have full access to DirectAdmin.

@like1, if you need your hosting company to support home.html instead of index.html (which is the standard) then you need to discuss that with your hosting company.

An easy solution would be for you to make an exact copy of home.html, name it index.html, and upload it to your site. That way apache will be happy, and so will your site and it's links.

Of course if you ever make changes to home.html you'll have to make a new copy.

Another option, which would slow down response a bit when people first visit your site, would be to create a site redirection in your DirectAdmin control panel.

Jeff
 
Back
Top