The page you specified is inaccessible, the error type: 403 Forbidden

Source: Internet
Author: User

IIS Settings method

1, open the Internet Information Services window, expand the "User name" "web" option, right-click, select the Properties menu command on the pop-up shortcut menu, open the Web Site Properties dialog box, click the Documents tab, and click the Add button under the Enable Default document option. Enter a new document name in the Open dialog box, and then click the OK button.

Apache Settings Home

Set the default page

Method 1 Sets the 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:

  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: 403 errors are common error prompts during web site access. The resource is not available. The server understands the customer's request, but refuses to process it. Typically, the resolution sets the site permissions directly because of the permissions set on the file or directory on the server.

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.