ISPC - how can I change nginx webserver port?

Discussion in 'Installation/Configuration' started by talkingnews, Jan 4, 2012.

  1. talkingnews

    talkingnews New Member

    Question: I want to put Varnish in front of nginx, which must then listen on a different port, let's say 8084.

    I've looked in the manual, I've looked through the control panel, I've tried changing the ports for that IP address, but I just don't see it.

    Of course, I can manually change the port in the site.conf file, but then every single time I make another change, it puts it back again. So I have to ssh in, sudo, nano the file, save, restart nginx.... until the next time!

    Can anyone suggest how this is done, please?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The templates for the config files are in /usr/local/ispconfig/server/conf, make a copy of the nginx template file and save it in the conf-custom directory and do the changes in that file.
  3. talkingnews

    talkingnews New Member

    Excellent! Thanks - that'll do nicely!

Share This Page