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.