Skip to main content

Using HTTPS

Comments

11 comments

  • cPRex Jurassic Moderator
    Hey hey! In the example we worked with earlier,
    0
  • Brady.Gunn_Anishinabek
    Is there anything special I need to do in the include to make it https?
    0
  • cPRex Jurassic Moderator
    There shoudn't be, no. As an example, when a cPanel user installs nginx, we setup an internal proxy. Nginx listens publicly on ports 80 and 443, but the Apache configuration is updated to use ports 81 and 444 so it can still delivery unsecured and secured content. As long as the port you're forwarding to is something that is listening for https connections, I'd expect that to work. If the port is a different service, there may need to be some manual configuration to ensure Apache can still deliver an SSL.
    0
  • Brady.Gunn_Anishinabek
    I reverseproxyed the app from the port it is running on to www.subdomain.ca without a specified port. It works when I don't add https:// but when I do it gives me a "500 Internal Server Error"
    0
  • cPRex Jurassic Moderator
    Do you see anything additional in the Apache logs when the 500 error happens?
    0
  • Brady.Gunn_Anishinabek
    Error Logs: ' [Fri Mar 31 08:06:30.776104 2023] [autoindex:error] [pid 13911:tid 47315928778496] [client [MY IP]] AH01276: Cannot serve directory /home/[USER]/public_html/[SUBDOMAIN]/: No matching DirectoryIndex (index.php,index.php8,index.php7,index.php5,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.js) found, and server-generated dir$ [Fri Mar 31 08:06:30.776462 2023] [core:error] [pid 13911:tid 47315928778496] [client [MY IP] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. '
    0
  • cPRex Jurassic Moderator
    Do you have an index file in the directory that is mentioned? That error indicates you may not. The second error is usually a problem with a .htaccess file having too many redirects.
    0
  • Brady.Gunn_Anishinabek
    So because I am using a reverse proxy to run an app from a different port to the subdomain I didn't think I needed anything on the folder of the subdomain. Do I need an index in there, if so what do I put in it?
    0
  • cPRex Jurassic Moderator
    The web content is still served from the same location, so all your normal web files would need to be at that location, or you'll need to specify an alternative index page using the .htaccess file and the DirectoryIndex directive.
    0
  • Brady.Gunn_Anishinabek
    But it still works when going to the address without https, so why wouldnt it work with https?
    0
  • cPRex Jurassic Moderator
    The connections are served over a different port. It might be best to submit a ticket to our team so we can check the configuration directly.
    0

Please sign in to leave a comment.