lshgdut / essay

随笔记录
0 stars 0 forks source link

Permission denied: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed #14

Open lshgdut opened 6 years ago

lshgdut commented 6 years ago

This error is not really about file permissions or anything like that. What it actually means is that httpd has been denied permission to connect to that IP address and port.

The most common cause of this is SELinux not permitting httpd to make network connections.

To resolve it, you need to change an SELinux boolean value (which will automatically persist across reboots). You may also want to restart httpd to reset the proxy worker, although this isn't strictly required.

# setsebool -P httpd_can_network_connect 1

For more information on how SELinux can affect httpd, read the httpd_selinux man page.


From https://wiki.apache.org/httpd/13PermissionDenied