0 Replies Latest reply on Nov 5, 2018 9:56 AM by fdlprod

    Mod_cluster and nodeJS redirection on same virtualhost

    fdlprod

      hi,

       

      i have a apache on 443 with one virtualhost, another virtualhost on port 6666 with mod_cluster

       

      i want to add on 443 a redirection to nodejs installed on same server on port 844 but i can't make the redirection nothing work after...

       

          Listen XXX.XX.XX.XX:443

          Listen XXX.XX.XX.XX:6666

       

       

          SSLSessionCache        "shmcb:/Apache24/logs/ssl_scache(512000)"

          SSLSessionCacheTimeout  300

       

       

          #ThreadsPerChild                        128

          #MaxRequestsPerChild    10

       

       

          ExtendedStatus On

       

       

          # Web Management Console

       

       

      <VirtualHost XXX.XX.XX.XX:443>

       

       

       

       

              SSLProtocol all -SSLv2 -SSLv3

              SSLHonorCipherOrder on

              SSLEngine on

              SSLCipherSuite ALL:!MD5:!EXPORT:!DES:!3DES:!DHE:!EDH:!RC4:!aNULL:!eNULL:!MEDIUM:!LOW

              SSLCertificateFile /etc/httpd/certs/newcert.pem

              SSLCertificateKeyFile /etc/httpd/certs/newkey.pem

              SSLCertificateChainFile /etc/httpd/certs/newcert.pem

       

       

              <Directory />

              Require all granted

              </Directory>

       

       

              <Location /mcm>

              SetHandler mod_cluster-manager

      Order Allow,Deny

              Allow from all

          </Location>

       

       

              AllowDisplay On

              AllowCmd Off

              KeepAliveTimeout 180

              TimeOut 300

       

       

       

           SSLProxyEngine on

           ProxyRequests Off

           ProxyPass        /X!

          ProxyPass        /XZ!

          ProxyPreserveHost On

          ProxyPass /api https://server:8443

          ProxyPassReverse /api https://server:8443

       

          <Location /status>

              SetHandler server-status

         </Location>

       

       

       

       

         </VirtualHost>

       

       

      # Management Module

       

       

      <VirtualHost 172.20.30.29:6666>

              SSLProtocol all -SSLv2 -SSLv3

              SSLHonorCipherOrder on

              SSLEngine on

              SSLCipherSuite ALL:!MD5:!EXPORT:!DES:!3DES:!DHE:!EDH:!RC4:!aNULL:!eNULL:!MEDIUM:!LOW

              SSLCertificateFile /etc/httpd/certs/newcert.pem

              SSLCertificateKeyFile /etc/httpd/certs/newkey.pem

              SSLCertificateChainFile /etc/httpd/certs/newcert.pem

       

       

              <Directory />

              Require all granted

              </Directory>

       

       

              #AdvertiseFrequency 5

              #ServerAdvertise on http://...

              EnableMCPMReceive

              # ManagerBalancerName value must be lowercase !

              ManagerBalancerName loadbalancer

       

       

      </VirtualHost>

       

       

       

       

      # Management Module

       

       

      <VirtualHost 172.20.30.29:6666>

              SSLProtocol all -SSLv2 -SSLv3

              SSLHonorCipherOrder on

              SSLEngine on

              SSLCipherSuite ALL:!MD5:!EXPORT:!DES:!3DES:!DHE:!EDH:!RC4:!aNULL:!eNULL:!MEDIUM:!LOW

              SSLCertificateFile /etc/httpd/certs/newcert.pem

              SSLCertificateKeyFile /etc/httpd/certs/newkey.pem

              SSLCertificateChainFile /etc/httpd/certs/newcert.pem

       

       

              <Directory />

              Require all granted

              </Directory>

       

       

              #AdvertiseFrequency 5

              #ServerAdvertise on http://...

              EnableMCPMReceive

              # ManagerBalancerName value must be lowercase !

              ManagerBalancerName loadbalancer

       

       

      </VirtualHost>

       

       

      nothing work it seems we can not mixt mod_cluster and mod_proxy