I can't make reverse proxy

Hello, Help me please, when i try make reverse proxy i have permission errors.

[Tue Mar 20 08:43:42.764478 2018] [proxy:error] [pid 5911] (13)Permission denied: AH00957: HTTP: attempt to connect to 10.1.2.233:8080 (cs.ph.com) failed
[Tue Mar 20 08:43:42.764686 2018] [proxy:error] [pid 5911] AH00959: ap_proxy_connect_backend disabling worker for (cs.ph.com) for 60s
[Tue Mar 20 08:43:42.764717 2018] [proxy_http:error] [pid 5911] [client 10.1.1.41:51286] AH01114: HTTP: failed to make connection to backend: cs.ph.com
[Tue Mar 20 08:43:42.818267 2018] [proxy:error] [pid 5912] (13)Permission denied: AH00957: HTTP: attempt to connect to 10.1.2.233:8080 (cs.ph.com) failed
[Tue Mar 20 08:43:42.818391 2018] [proxy:error] [pid 5912] AH00959: ap_proxy_connect_backend disabling worker for (cs.ph.com) for 60s
[Tue Mar 20 08:43:42.818416 2018] [proxy_http:error] [pid 5912] [client 10.1.1.41:51287] AH01114: HTTP: failed to make connection to backend: cs.ph.com, referer: https://cs.ph.com/nuxeo/ui

my http config:

<VirtualHost *:443>

  ServerAdmin infraestrutura@arizona.com.br
  ServerName cs.ph.com

  #  Disable global proxy
  ProxyRequests       Off
  #  Pass original host
  ProxyPreserveHost   On
  #  Timeout waiting for backend
  ProxyTimeout        600

  ProxyVia On
  ProxyErrorOverride Off

  RequestHeader append nuxeo-virtual-host "https://cs.ph.com/"

  Alias /error/ "/var/www/error/"
  ErrorDocument 503 /error/503.html
  ErrorDocument 403 /error/503.html
  ErrorDocument 500 /error/500.html
  ErrorDocument 404 /error/404.html
  ProxyPass /error/ !

  <Proxy *>
    Require all granted
  </Proxy>

  ProxyPass               /                                  http://cs.ph.com:8080/
  ProxyPassReverse        /                                  http://cs.ph.com:8080/

  LogLevel error
  #ErrorLog /var/log/apache2/socket.docker-ssl_error.log
  #CustomLog /var/log/apache2/socket.docker-ssl_access.log combined

  SSLEngine on
  SSLCertificateFile /etc/nginx/ssl/geotrust_ssl.crt
  SSLCertificateKeyFile /etc/nginx/ssl/geotrust_private.key

  SSLOptions +StrictRequire
  SSLProtocol all -SSLv2 -SSLv3
  SSLHonorCipherOrder on
  SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
  SSLVerifyDepth 4
  SSLVerifyClient none
  SSLProxyEngine off
  SSLInsecureRenegotiation off

  <Directory />
    SSLRequireSSL
  </Directory>

  <FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
  </FilesMatch>
  <Directory /usr/lib/cgi-bin>
    SSLOptions +StdEnvVars
  </Directory>

  BrowserMatch "MSIE [2-6]" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
  # MSIE 7 and newer should be able to use keepalive
  BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
0 votes

1 answers

96 views

ANSWER



I resolved this problem. I disabled Selinux on Centos 7.

0 votes