Serve some websites on different ports

Discussion in 'ISPConfig 3 Priority Support' started by clixclix, Oct 15, 2025.

  1. clixclix

    clixclix Member HowtoForge Supporter

    Hi, what’s the best way to have a website served on a different port (eg. 444 instead of 443) on a server running ISPConfig with Apache?
    Thank you. Claudio
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Well, I know many things are possible but may not be practical, so can you clearly explain what are you trying to achieve other than changing the port from 443 to 444 for a web site (not all right?) as default vhost file for a web site have both port 80 and 443 in there; and once changed the site domain will only be accessible via port 444 afterwards, e.g. https://custom.port.domain:444.

    In my mind, the trick is to deactivate the particular web site(s) in the panel, but manually add its vhost file back in enabled folder with the intended port changed in it. Also this way, resync won't touch that particular web site(s) vhost in enabled folder and change the port back to default 443.

    Note that I honestly never tried this, though in my mind, deactivating it means the vhost's symlink between available and enabled folder will be cut, and doing that might work, but really no promise it will work, until the idea is really tested.
     
    Last edited: Oct 15, 2025
  3. clixclix

    clixclix Member HowtoForge Supporter

    Thanks for your answer.
    The goal is to have a website that presents its own SSL certificate to a client that does not support the SNI protocol, so that a different default certificate is exposed than the one served on port 443.
    Note: I want to have two different default certificates served to non-SNI clients on the same server.
    I know I could configure everything manually in the Apache configuration, but I’m wondering if it’s possible to have this supported through the ISPConfig GUI instead.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I didn't say everything need to be done manually, but mainly in ISPConfig GUI and only a little in CLI.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    If that client supports IPv6, you could assign that site a dedicated IPv6 address instead of assigning it a different port.
     
    ahrasis and clixclix like this.
  6. clixclix

    clixclix Member HowtoForge Supporter

    Thank you for your suggestions. I was also able to configure in apache a very small reverse proxy website on port 444.
     
    ahrasis likes this.

Share This Page