1

私はApacheに仮想ホストを持っていて、それが私にぴったりです。セキュアな外部 URL を、Apache を介してネットワーク内の Maximo Java 仮想マシンに向けようとしています。これがconfファイルからの私の仮想ホストです。

   <VirtualHost 5.5.5.5:443>
    ServerName maximolink.mydomain.com
    SSLProxyEngine On
    SSLEngine on

    # Turn on SSL
    SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
    # Path to DigiCert Certificate
    SSLCertificateChainFile /etc/httpd/conf/ssl.crt/certs/DigiCertCA.crt
    # Path to gafoc certificate
    SSLCertificateFile /etc/httpd/conf/ssl.crt/certs/star_gafoc_com.crt
    # Path to SSL key generated during creation of CSR
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/maximolink.mydomain.com.key

    ProxyRequests Off
    ProxyPreserveHost On
    ProxyVia full
    EnableSendFile On
    EnableMMAP On

    RewriteEngine On

    <Proxy *>
            Order deny,allow
            Allow from all
    </Proxy>

    # Turn on the proxy
    ProxyPass / https://internalmaximoserver.mydomain.com:9451/
    ProxyPassReverse / https://internalmaximoserver.mydomain.com:9451/

    CustomLog /var/log/httpd/ssl-access.log combined
    ErrorLog /var/log/httpd/ssl-error.log

    <Location />
            #ProxyPassReverse /
            Order allow,deny
            allow from all
    </Location>

</VirtualHost>

結果は、 https ://maximolink.mydomain.com/maximo/ に移動すると、次の場所に移動できます。

一部のトラフィック (画像、html) がサーバー間を通過し始めますが、最終的にファイル パスが https://maximolink.mydomain.com:9451/maximo/として要求され、通過し始めます 。9451 を停止する方法がわかりません。トラフィックの通過中に URL に添付されないようにします。

4

1 に答える 1