The project is deployed to the Apache Http Server, and the configuration file is detected by apachectl -t. However, access through the browser, but there is "you don't have permission to access /on this server".
1, first, view the conf.d/python.conf file
<Directory "Project Path">
Options Indexes FollowSymLinks +Includes
AllowOverride None
Order allow,deny
Allow from all< Br>
</Directory>
The red part above indicates that anyone is allowed to access the directory
2. Secondly, since there is no problem with the configuration file, you need to consider http.conf Access rights for users and groups specified in the file. There is a solution for PermissionDenied on the Apache wiki. The link is http://wiki.apache.org/httpd/13PermissionDenied. The translation is as follows:
Error 13 refers to the file system access permission error. That is, apache is denied access due to wrong permissions. In general, this does not mean that there is an error in the Apache configuration file.
In order to serve files, Apache must have the appropriate permissions to access those files, which are granted by the operating system. In particular, specifying the User or Group in the httpd.conf file must be able to read all the files being served, and find the directory containing those files and all the parent directories up to the root of the file system.
A typical access to a resource on a Unix-like operating system that is not part of the User or Group specified in the httpd.conf file. For normal files, it is 644 -rw-r--r--, for folders Or the CGI script is 755 drwxr-xrx. You may also need to check the extended access rights supported by the operating system (such as SELinux access).
Examples
When accessing /usr/local/apache2/on a UNIX-like operating system You received a Permission Denied error while htdocs/foo/bar.htm.
First, check the access permissions of the file:
$ cd /usr/local/apache2/htdocs/foo $ ls -l bar.htm
If necessary, Fix them:
$ chmod 644 bar.html
Do the same for folders and each parent folder (/usr/local/apache2/htdocs/foo, /usr/local /apache2/htdocs, /usr/local/apache2, /usr/local/,/usr):
$ ls -la $ chmod +x $ cd .. $ #repeat up to the root
On some systems, the tool namei can be used to list the access rights of different components on each path, and then to find out if there is a permission problem:
$ namei -m /usr/local/apache2/Htdocs/foo/bar.html
3. Finally, if you still haven't solved the problem, you need to check the extended access rights.
Close SELinux with setenforce 0 to see if it solves the problem.
The problem I encountered was that the user specified in the http.conf file did not have access to the directory where the project is located.
http 503 Error: Your web server is currently unable to process HTTP requests due to temporary overlo
I believe that you are familiar with the Remote Desktop feature in Wi
prohibit IIS cache static files (png, js, html, etc.) Background: IIS to improve performance, by def
Using other peoples hard disk to establish FTPFTP is a service that network admini
Security tips teach you how to use SSL to give IIS a lock
Failure analysis of the three major components of the server
Backing up and restoring Windows IIS server settings
Windows2003 server management three skills
Five major operational tips to avoid server migration risks
Asp.net can not load oci.dll and other error solutions
SSH can not connect to VPS common solution
Five application skills: novices to maintain server security
Reasons for IIS to fail gzip open: wildcard application mapping
Analysis: Choosing "Cloud Computing" must clarify 10 questions.
Defined duplicate system.web.extensions/scripting/scriptResourceHandler
After XP starts, can you enter the command line mode directly?
Computer time often error Win7 synchronization network time setting
Win8.1 start screen shows Start#ZHS
What should I do if the Win7 system fails to install the ICBC Assistant?
Win7 system program can not run the solution
U disk installed system can not start, what is the problem?
MT4 can not add indicators under Win8 system can not find technical indicators
Microsoft released a new patch for Windows 7/8.1, Windows 10 upgrades are smoother