Enter the address to display
Forbidden
You don't have permission to access/news/search_fdsafdsa on this server.
Httpd. conf:
The code is as follows: |
Copy code |
<Directory/> Options FollowSymLinks AllowOverride None Order deny, allow Deny from all Satisfy all </Directory> Then try |
The deny in from all is changed to allow., Save and restart apache, and then test my web page again, haha
Ps 403 prohibits access to Order deny in apache, which is affected by allow deny. To solve this problem, you only need to change deny to allow. Of course, the problem is the server permission.
Make sure that the webfile contains an index.html file (or a file named index with a suffix of another form (such as. jsp. php). For example, if the file is left blank, the above 403 error will occur.
The code is as follows: |
Copy code |
<IfModule dir_module> DirectoryIndex index.html </IfModule> |
Change to (if you want to use index. jsp ):
The code is as follows: |
Copy code |
<IfModule dir_module> DirectoryIndex index.html index. jsp </IfModule> |
To browse the content in this folder, you can add the following before </Directory>:
The code is as follows: |
Copy code |
Options Indexes |
You can.