The webpage you specified cannot be accessed. Error Type: 403 Forbidden

Source: Internet
Author: User

Our webmaster often encounters some website accidents \ "the webpage you specified cannot be accessed, Error Type: 403 Forbidden \" error. Generally, the default homepage is not set, and the solution is very simple.

Iis setting method

1. Open the "Internet Information Service" window, expand the "user name" and "website" option, right-click it, and select the "properties" menu command in the pop-up shortcut menu, open the "website properties" dialog box, click the "document" tab, click the "add" button under the "enable default document" option, and enter a new document name in the displayed dialog box, click OK.

Apache settings Homepage

Set Default Page

Method 1: set global:

The Code is as follows: Copy code

<IfModule dir_module>
DirectoryIndex index. php index. php4 index. php3 index. cgi index. pl index.html index.htm index.shtml index. phtml default. php
</IfModule>

Method 2 can be set for a directory as follows:

The Code is as follows: Copy code

Alias/aidd2008 "D:/php/web/aidd2008"
<Directory "D:/php/web/aidd2008">
Options Indexes MultiViews
AllowOverride None
Order allow, deny
Allow from all
DirectoryIndex default. php
</Directory>


Tip: Error 403 is a common error message during Website access. Resource unavailable. The server understands the customer's request, but rejects the request. Generally, the permission settings for files or directories on the server can be used to directly set website permissions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.