Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

node.js - Nodejs Apache Reverse Proxy HTTPS

I successfully manage to reverse proxy my Node app through a reverse proxy with the below customizations

<VirtualHost 190.200.180.50:3333>
  ServerName messenger.example.com
  ProxyPass / http://localhost:3333/ connectiontimeout=5 timeout=30
</VirtualHost>

this customization result gets a response from messenger.example.com:3333 from localhost:3333 on my server

the second I add configuration for managing HTTPS request I got 403 forbidden

<VirtualHost 190.200.180.50:3333>
      ServerName messenger.example.com
      ServerAlias www.messenger.example.com
      ServerAdmin [email protected]
      UseCanonicalName Off
    
      <IfModule ssl_module>
        SSLEngine on
    
        SSLCertificateFile /var/cpanel/ssl/apache_tls/messenger.example.com/combined
    
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
        <Directory "/home/example/public_html/messenger/cgi-bin">
          SSLOptions +StdEnvVars
        </Directory>
    
        </IfModule>
    
        ProxyPass / http://localhost:3333/ connectiontimeout=5 timeout=30

</VirtualHost>

And no there is no option for using this API over HTTP it has to be HTTPS.

the IP is fake


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...