reverse proxy and ispconfig 3

Discussion in 'Installation/Configuration' started by jordanet, Mar 20, 2024.

  1. jordanet

    jordanet New Member

    Hi everyone,
    I'm trying to configure ipsconfig with ngix proxy manager.

    ngix proxy manager is on another server because on port 80,443 I have different services on different servers

    The problem is when I activate HTTPS towards ispconfig the website does not work correctly, if I only use http everything works perfectly.

    I read that some Apache directives were added but I didn't understand which ones and where.
    Can someone help me?
    I'm creating a home test environment for various web services including a self-hosted wordpress site
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Is your public IP for NPM and ISPConfig shared? If shared and NPM is in front of your ISPConfig apache2 web server, you could run NPM to use port 80 and 443 but use custom port for ISPConfig web sites. You do not need to activate or use https in the ISPConfig web sites since that will be done in and will go through NPM.

    You could also setup ISPConfig nginx web server if you don't need any proxy manager.

    Or you could use ISPConfig proxy feature but it is not as nice as NPM.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    You mix up source and target here. You do not add any Apache directives in ISPConfig when ISPConfig is the target of a proxy. Apache directives are only used when you want to use ISPConfig as a proxy server to replace the Nginx proxy manager in your network with ISPConfig.

    First, you likely do not need https between Nginx Proxy manager and ISPConfig as long as both are in the same LAN and SSL gets terminated on the proxy. If you want to use SSL on the local connection nonetheless or if your proxy system is unable to terminate SSL connections, then all you have to do on ISPconfig side is to activate SSL in website settings and then add a SSL cert on SSL tab of the website (or use let#s encryot, but your proxy might block requests for issuing a LE cert, in this case you must either work with a self-signed SSL cert or buy a SSL cert from a SSL authority).
     
  4. jordanet

    jordanet New Member

    Hi, my network is like this:
    pfsense with ports 80,443 open to
    NGINX PROXY MANAGER 192.168.1.250 port 80,443
    ispconfig 192.168.1.190

    what do you mean by using the custom port for ispconfig? where do I configure it?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no custom port needed when using a proxy. See post #3 on how to configure this.
     
  6. jordanet

    jordanet New Member

    the problem is that when I activate https I receive ERR_TOO_MANY_REDIRECTS when opening the wordpress wp-admin page
    but maybe I'm doing something wrong in wordpress, I uploaded an html site and https and http work fine
    I'm sorry, maybe the problem is something else. It has uploaded several times as new wordpress but I always have problems in wp-admin ERR_TOO_MANY_REDIRECTS by activating https
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a WordPress issue and not related to the use of ISPConfig. You must take care to change the URL in Wordpress too, otherwise WordPress (not ISPConfig) will go into a redirect loop.
     
  8. jordanet

    jordanet New Member

    I don't understand if I use https without I see the site correctly, if I activate https it doesn't load the page correctly.

    I tried to activate ssl in ispconfig and rewirte http https I get error

    https://ibb.co/tJG7Fbr
    https://ibb.co/3N1cjDc
     
  9. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

     

Share This Page