Can you replace the apache with nginx

  • Is it really needed to compile mod_rpaf ?
    It is also available in the Debian Repository -> http://packages.debian.org/squeeze/libapache2-mod-rpaf
    Of course it is not that brand new Version.


    We should also rename the file to imscp:

    Code
    1. cp ispcp-nginx.conf /etc/nginx/imscp-nginx.conf


    and set the correct name in the perl script (line 8)


    Does this script come with any GPL ?
    Also we need to check the PHPMyAdmin direct Login and the Traffic stats...


    Greez BeNe


  • Is it really needed to compile mod_rpaf ?
    It is also available in the Debian Repository -> http://packages.debian.org/squeeze/libapache2-mod-rpaf
    Of course it is not that brand new Version.


    I don't know. :huh: I only translate this manual.


    Does this script come with any GPL ?


    :huh: In line 56 is email of developer.


    ... and the Traffic stats...


    Thank you for reminding me. This script does not include traffic!!!!!!:(

    Edited once, last by stopkadr ().

  • So, i have new updates for nginx. Now this script can work with last version of nginx.
    in 80 line of the original script, you need to change the directive
    [code=php]limit_zone conn \$binary_remote_addr 10m;[/php]
    to
    [code=php]limit_conn_zone \$binary_remote_addr zone=conn:10m;[/php]


    Updated script (only for Omega. See the 5th paragraph of manual in 1st post)


    If iptables rule is reset.
    Solution:

    Quote

    # nano /etc/init.d/nginxip


    [code=php]#!/bin/sh
    iptables -t nat -A PREROUTING ! -s 127.0.0.1 -d 192.168.1.225 -p tcp --dport 80 -j REDIRECT --to-ports 81[/php]
    where 192.168.1.225 - is ip of server

    Quote

    # chmod +x /etc/init.d/nginxip
    # nano /etc/rc.local


    Add before 0:
    [code=php]/etc/init.d/nginxip[/php]
    Save & reboot server.


    Question for developers:
    Will the included nginx in the next release?


    Thanks Testino for updated script.


    P.S. If something is unclear I'll try to explain.

    Edited once, last by stopkadr ().

  • i think it should be considered to replace apache with nginx entirely. it's just far superior to apache when handling huge amounts of visitors. using nginx as a back-end to apache is something i've never heard of, and doesn't make any sense. i've seen lots of nginx front-ends, but never a back-end. very big change though, but worth considering...