#1391
[How-To] HTTPD & Apache
Install HTTPD
yum install httpd
Check Proxy mod is installed/enabled :
vi /etc/httpd/conf/httpd.conf
and look for “proxy_balancer” module
To add a reverse proxy settings, create a new .conf file un /etc/httpd/conf.d/ like :
<Location "/artifactory"> ProxyPass http://myhost:8081/artifactory ProxyPassReverse http://myhost:8081/artifactory </Location>
In case of error like :
Permission denied: proxy: HTTP: attempt to connect to
You must disable SELinux :
vi /etc/selinux/config
=> SELINUX=disabled
[CentOS] Disable firewall [Centos] Yum download RPM package
http://www.serveridol.com/2014/02/26/apache-proxy-http-disabled-connection-forpermission-denied-proxy-http-attempt-to-connect-to/
http://blog.zwiegnet.com/linux-server/install-mod_proxy-plugin-to-apache-centos/
Apache as a reverse proxy with HTTPS backend :
https://www.vincentliefooghe.net/content/apache-reverse-proxy-https
see also : https://serverfault.com/questions/412206/apache-ssl-proxy-cant-find-client-certificate
and for error “incomplete client cert configured for SSL proxy (missing or encrypted private key?)” see : https://serverfault.com/questions/660691/sslproxycacertificatefile-fails-incomplete-client-cert-configured-for-ssl-proxy
Enable DumpIO plugin (https://httpd.apache.org/docs/2.4/mod/mod_dumpio.html)
Error
This is almost always caused by the semaphore limit of the OS, and Apache not properly cleaning up after itself. Luckily this is a simple problem to fix. Simply execute the following command via SSH or console:
See : https://portal.cloudunboxed.net/knowledgebase/37/No-space-left-on-device-AH00023-Couldnt-create-the-rewrite-map-mutex.html
Enable Apache Status module :
https://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/
List installed modules :
or
or
Error :
By default, SELinux prevents Apache from initiating outbound connections, so it is unable to proxy requests to Bitbucket Server.
https://confluence.atlassian.com/bitbucketserverkb/permission-denied-in-apache-logs-when-used-as-a-reverse-proxy-790957647.html
Install latest HTTPD/Apache on RHEL/CentOS :
https://crosp.net/blog/administration/install-latest-apache-server-centos-7/
Apache/HTTPD as HTTP / HTTPS proxy
RHEL/CentOS 7.x
Install old version of httpd
Error: AH00959: ap_proxy_connect_backend disabling worker
Fix: /usr/sbin/setsebool -P httpd_can_network_connect 1