How setup nginx as frontend to apache with full support for nginx ISPConfig3?

Discussion in 'Installation/Configuration' started by beliashou, Nov 25, 2011.

  1. beliashou

    beliashou New Member

    I'd like to setup nginx as frontend to apache. ISPConfig3 is full support for nginx. Should I use instruction like this or some new way?

    In my ISPConfig3 Manual I didn't find nginx as frontend to apache.

    PS; Centos 6 x64, ISPConfig 3.0.4.1
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Nginx as frontend for apache is not supported, supported are either nginx or apache. The guide you linked to does not apply to current ispconfig versions, so its likely not compatible with current ISPConfig versions.

    The instructions to install ISPConfig with nginx can be found here:

    http://www.howtoforge.com/perfect-server-ubuntu-11.10-with-nginx-ispconfig-3

    Nginx support is only tested with Ubuntu 11.10.
     
  3. beliashou

    beliashou New Member

    Oh, thanks! Our developers (user of my server) need a nginx as frontend. I have to setup it. In current version I didn't find in site template config port numbers. But I'll find it and set it up. :)

    Thank you for explination.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The port numbers are configured in ispconfig under System > Server IP
     
  5. beliashou

    beliashou New Member

    Hmm... I had no records in System > Server IP addresses. I've only one IP for my server. It in System > Server Config >Server > IP Address. But there is no deafult port on System > Server Config > Web page.

    I tryed create new record for the same IP address and port 82 on System > System IP page and set the IP on Sites -> Websites page, but nothing to change and my site answer at port 80.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you configured apache to listen on port 82 instead of port 80 in the httpd.conf configuration file?
     
  7. beliashou

    beliashou New Member

    Yes. Now I set up port 82 in /etc/httpd/conf/httpd.conf, restart server, but get centos-apache test page (with 80 and 82 ports), but not my site!
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you selected the IP address and not * in the website settings of this website in ISPConfig and that port 82 is set for this IP address under System > ServerIP and that the namevirtualhost checkbox in the IP settings is enabled.
     
  9. beliashou

    beliashou New Member

    I think it's a bug:

    Add to server ip address with ports 82,445.
    Add site with this ip.

    # grep VirtualHost /etc/httpd/conf/sites-available/bla-bla.by.vhost
    <VirtualHost xx.xx.xx.235:80>
    </VirtualHost>
     

Share This Page