Skip to content

cPanel Proxy setup

Setting up cPanel Nginx reverse proxy

  • We need 2 files

    /etc/apache2/conf.d/userdata/std/2_4/cpuser/mydocs.vladmin-dev.top/include.conf
    
  • Content for std

    ProxyPass /.well-known !
    ProxyPass / http://10.2.35.64:5000/
    ProxyPassReverse / http://10.2.35.64:5000/
    

    /etc/apache2/conf.d/userdata/ssl/2_4/cpuser/mydocs.vladmin-dev.top/include.conf
- content for SSL
SSLproxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPass / http://10.2.35.64:5000/
ProxyPassReverse / http://10.2.35.64:5000/