How to change deault serving port for ONE specific vhost

Discussion in 'Installation/Configuration' started by zyzzza, Nov 19, 2023.

  1. zyzzza

    zyzzza Member

    Hi,
    I have this weird request form one of my clients - he needs 2 of his sites to be served on different PORTS (mysite.com:4483 and mysite2.com:4484), while all the rest should be working as usual.

    Now i kno wits easy achievable by changing port numbe rin apache config, however i want it to be consistent with ispconfig, so when i execute resync, it would not spoil configuration. SO question - what is the west way changing one chost port via the control panel ? (if any?)

    PS - the 4483 should be serving https protocol , and we dont care about the non ssl http.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can set the port of the vhost on Nginx servers on the options tab of the website. There is no option for Apache servers to change it for a single site. What you can try to do is to change the port in the vhost config file and then make it immutable using chattr -i .... command. Bust this also disables the ability to manage this vhost in ISPConfig, as no further changes will be written to that vost by ISPConfig.
     
    pssadm and ahrasis like this.

Share This Page