Results 1 to 25 of 25
  1. #1
    Join Date
    Aug 2007
    Posts
    51

    server with 400 sites, all visitor have same IP (my server IP)

    hi all,

    I have pig problem here
    I tried to install nginx admin manytimes
    but NO Luck

    all my websites (400 website), all visitors in that websites have my dedicated IP address

    that make all members have login problem in there forum coz the same IP dedection

    some information for that same IP
    when run
    Code:
    # netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
    
         15 41.238.235.138
         16 41.254.2.253
         18 197.122.191.18
         18 41.191.61.76
         20 41.35.96.40
         21 41.237.206.115
         34 217.55.196.72
         40 188.48.101.225
        140 188.48.49.204
       1556 xx.xx.xx.xx (my main server dedicated ip address)
    nginx.conf
    Code:
    user  nobody;
    # no need for more workers in the proxy mode
    worker_processes  2;
    error_log  /var/log/nginx/error.log info;
    worker_rlimit_nofile 20480;
    events {
     worker_connections 5120; # increase for busier servers
     use epoll; # you should use epoll here for Linux kernels 2.6.x
    }
    http {
     server_name_in_redirect off;
     server_names_hash_max_size 10240;
     server_names_hash_bucket_size 1024;
     include    mime.types;
     default_type  application/octet-stream;
     server_tokens off;
     sendfile on;
     tcp_nopush on;
     tcp_nodelay on;
     keepalive_timeout  5;
     gzip on;
     gzip_vary on;
     gzip_disable "MSIE [1-6]\.";
     gzip_proxied any;
     gzip_http_version 1.1;
     gzip_min_length  1000;
     gzip_comp_level  6;
     gzip_buffers  16 8k;
    # You can remove image/png image/x-icon image/gif image/jpeg if you have slow CPU
     gzip_types    text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml;
     ignore_invalid_headers on;
     client_header_timeout  3m;
     client_body_timeout 3m;
     send_timeout     3m;
     reset_timedout_connection on;
     connection_pool_size  256;
     client_header_buffer_size 256k;
     large_client_header_buffers 4 256k;
     client_max_body_size 200M; 
     client_body_buffer_size 128k;
     request_pool_size  32k;
     output_buffers   4 32k;
     postpone_output  1460;
     proxy_temp_path  /tmp/nginx_proxy/;
     client_body_in_file_only on;
     log_format bytes_log "$msec $bytes_sent .";
     include "/etc/nginx/vhosts/*";
    }

  2. #2
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Install mod rpaf l.

  3. #3
    Join Date
    Aug 2007
    Posts
    51
    nginx admin v3.2 already have mod_rpaf and its install it

    but I don't know, how to know that is installed or not, and how to know is it working correctlly or not ?

  4. #4
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Copy paste from my blog,
    In order to get the cPanel server ready for nginx –you must first install an apache module called mod_rpaf Login as root: Doing so will install the module into the Apache module directory. Then Go to your Web Host Manager (WHM) follow the tree here: Main >> Service Configuration >> Apache Configuration > Include Editor > Pre Main Include and Select the apache version that is running on your cPanel server. and then add following code section there, and replace (place your ips here without the brakets) with the list of IP addresses on your Cpanel server:# cd /usr/local/src # wget http://stderr.net/apache/rpaf/download/ mod_rpaf-0.6.tar.gz # tar xvzf mod_rpaf-0.6.tar.gz # cd mod_rpaf-0.6 # /usr/local/apache/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c ================================================== LoadModule rpaf_module modules/mod_rpaf-2.0.so RPAFenable On # Enable reverse proxy add forward RPAFproxy_ips 127.0.0.1 (place all your ips here without the brakets) RPAFsethostname On # let rpaf update vhost settings allowing to have # the same hostnames as in the “actual” configuration for the # forwarding apache installation RPAFheader X-Real-IP # Allows you to change which header we have mod_rpaf looking for # when trying to find the ip the that is forwarding our requests ===================================================

  5. #5
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    http://seriesn.com/index.php/2011/10...-step-by-step/

    Sorry for linking, mods can remove if necessary.

  6. #6
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Their mod rpaf does not load for some reason.

  7. #7
    Join Date
    Aug 2007
    Posts
    51
    thanks alot, you are rock

    just install nginx admincp and add this
    in apache pre module
    Code:
    LoadModule rpaf_module modules/mod_rpaf-2.0.so 
    
    RPAFenable On
    # Enable reverse proxy add forward
    
    RPAFproxy_ips (server IP)
    
    RPAFsethostname On
    # let rpaf update vhost settings allowing to have
    # the same hostnames as in the "actual" configuration for the
    # forwarding apache installation
    
    RPAFheader X-Real-IP
    # Allows you to change which header we have mod_rpaf looking for
    # when trying to find the ip the that is forwarding our requests
    its working fine, thanks alot

  8. #8
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Cheers. My tutorial was for nonplugin system and nginxadmin did not use to come with rpaf. But works I guess.

  9. #9
    Join Date
    Aug 2010
    Location
    Sorting Office
    Posts
    9,523
    Quote Originally Posted by SeriesN View Post
    http://seriesn.com/index.php/2011/10...-step-by-step/

    Sorry for linking, mods can remove if necessary.
    Not before I bookmark it Nice one!

  10. #10
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Quote Originally Posted by F-DNS View Post
    Not before I bookmark it Nice one!
    Thank you
    - Nexus Bytes LLC- Ryzen powered NVME VPS and web hosting, packed with perks and love!
    - Entry Bytes - Affordable VPS Cheap quality
    - USA (NYC | Miami | LA) | Europe (London, UK | Naaldwijk, NL) | Asia Pacific (Singapore | Japan | Australia)

  11. #11
    Join Date
    Aug 2007
    Posts
    51
    the problem has come again
    Code:
    # netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
    
         12 41.238.158.55
         12 41.239.138.251
         12 41.34.15.179
         14 178.187.173.67
         14 41.238.212.69
         19 196.221.94.135
        803 xx.xx.xx.x (my main server IP address)
    any idea

  12. #12
    just want to make sure if rpaf is truly loaded, is there

    "rpaf_module (shared)"

    if you run this command:

    httpd -M
    -

  13. #13
    Join Date
    Aug 2002
    Location
    Seattle
    Posts
    5,525
    You'll need to insert an X-FORWARD-FOR request header in the requests that are sent to your Apache.

  14. #14
    Join Date
    Aug 2007
    Posts
    51
    Code:
    root@server1 [~]# httpd -M | grep rpaf
    Syntax OK
     rpaf_module (shared)
    and rpaf conf
    Code:
    root@server1 [~]# cat /usr/local/apache/conf/includes/rpaf.conf
    LoadModule rpaf_module modules/mod_rpaf-2.0.so
    #Mod_rpaf settings
    RPAFenable On
    RPAFproxy_ips 127.0.0.1 xx.xxx.xx.x (my server IP)
    RPAFsethostname On
    #RPAFheader X-Real-IP
    RPAFheader X-Forwarded-For
    and still now too many with my server ip access
    Code:
    # netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
         14 41.42.6.236
         15 41.237.33.81
         16 217.55.11.124
         20 31.214.94.237
         25 41.130.60.62
        983 xx.xxx.xx.x (my server IP)

  15. #15
    Join Date
    Aug 2002
    Location
    Seattle
    Posts
    5,525
    The XFF request header needs to be defined in your nginx.conf .

  16. #16
    Join Date
    Aug 2007
    Posts
    51
    Quote Originally Posted by IRCCo Jeff View Post
    The XFF request header needs to be defined in your nginx.conf .
    how too add this request header, and applied for the 400 website ?

  17. #17
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    You have cpanel installed right? If so and if you trust me, then pm me your whm and ssh login and let me do it for you. (Free)
    - Nexus Bytes LLC- Ryzen powered NVME VPS and web hosting, packed with perks and love!
    - Entry Bytes - Affordable VPS Cheap quality
    - USA (NYC | Miami | LA) | Europe (London, UK | Naaldwijk, NL) | Asia Pacific (Singapore | Japan | Australia)

  18. #18
    Join Date
    Apr 2009
    Posts
    370
    Nginx Admin install mod_rpaf automatically, normally not needed to install separately.
    Just follow nginx admin installer.
    ablehosting.com - Successfully Operating Since 2002
    High Performance Hosting with 99.9% Uptime.
    SINGAPORE - USA - GERMANY

  19. #19
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Quote Originally Posted by linux2k View Post
    Nginx Admin install mod_rpaf automatically, normally not needed to install separately.
    Just follow nginx admin installer.
    But it does not configure apache to load the modules.
    - Nexus Bytes LLC- Ryzen powered NVME VPS and web hosting, packed with perks and love!
    - Entry Bytes - Affordable VPS Cheap quality
    - USA (NYC | Miami | LA) | Europe (London, UK | Naaldwijk, NL) | Asia Pacific (Singapore | Japan | Australia)

  20. #20
    Join Date
    Apr 2009
    Posts
    370
    Quote Originally Posted by SeriesN View Post
    But it does not configure apache to load the modules.
    Your observation are wrong.
    The nginx admin installer also configure Apache to load modules.

  21. #21
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Quote Originally Posted by linux2k View Post
    Your observation are wrong.
    The nginx admin installer also configure Apache to load modules.
    Got 15 box running the plugin, Installed/re-installed the plugin more then 1000 times. Never worked. Can you post an error log from your cpanel?(Assuming using cpanel and nginx admin plugin)? Unless I have missed something, the plugin won't work straight out of the box.
    - Nexus Bytes LLC- Ryzen powered NVME VPS and web hosting, packed with perks and love!
    - Entry Bytes - Affordable VPS Cheap quality
    - USA (NYC | Miami | LA) | Europe (London, UK | Naaldwijk, NL) | Asia Pacific (Singapore | Japan | Australia)

  22. #22
    Join Date
    Apr 2009
    Posts
    370
    There are more then 10000 servers where nginx admin working fine.
    If it is not worling for you there must be somthing wrong with your servers configurations.

  23. #23
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Don't want to argue, never said it wont work. It works, also installs and compiles mod_rpaf, how ever, the script by it self don't tend to load mod_rpaf. If you have a cpanel box with default installation, you might want to check the error logs again.

  24. #24
    Join Date
    Apr 2009
    Posts
    370
    Dear SeriesN,
    I don't understand what issue do you want to point out.
    First you asked Nginx admin not install mod_rpaf, then you ask yes it install but don't configure in Apache. Then in #21 you asked "Got 15 box running the plugin, Installed/re-installed the plugin more then 1000 times. Never worked"
    Now you asking "not tend to load mod_rpaf"

    Dear after install just check /etc/httpd/conf/httpd.conf
    You can easily find the entry Include "/usr/local/apache/conf/includes/rpaf.conf"
    and in this included file you can easily find the load module command and Mod_rpaf settings.

    If you still cant understand, point out what issue you actually have with proper logs.
    But please don't spread false information.
    ablehosting.com - Successfully Operating Since 2002
    High Performance Hosting with 99.9% Uptime.
    SINGAPORE - USA - GERMANY

  25. #25
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Quote Originally Posted by linux2k View Post
    Dear SeriesN,
    I don't understand what issue do you want to point out.
    First you asked Nginx admin not install mod_rpaf, then you ask yes it install but don't configure in Apache. Then in #21 you asked "Got 15 box running the plugin, Installed/re-installed the plugin more then 1000 times. Never worked"
    Now you asking "not tend to load mod_rpaf"

    Dear after install just check /etc/httpd/conf/httpd.conf
    You can easily find the entry Include "/usr/local/apache/conf/includes/rpaf.conf"
    and in this included file you can easily find the load module command and Mod_rpaf settings.

    If you still cant understand, point out what issue you actually have with proper logs.
    But please don't spread false information.
    Wait, we were talking about mod_rpaf. Not the issue with nginxadmin. When I wrote this tutorial, ngninx admin was not perfect.

    Did not mean to offend you/ nor I have read your sig until now. The issue op Had was the exact issue I was pointing to. You have a great plugin, I admit that, how ever, like any great software, your plugin has some issue too. May be a mare bug? Do not know but those who are using your plugin might be able to shed some light.

    You might want to check your server for a second check. Cause I believe Just like op, I installed the server by simply copy pasting the instruction. Like any other sysadmin, I was trying the software out on a test box instead of a live production server and while running through the error logs, that was the first time I have noticed the issue with IP. The update you had before 2012 was working fine, but the one you had this February seems to broke the code. And by manually configuring the code, I was able to put the script on a live production server.

    Again, this is not a false info nor I am trying to bash you. I will be honest, I love your script. I have it active on 15 production box that I control for my hosting clients and planning to continue. Their "might be a bug on your script" or me, op and lot of other people online (google em up) have wrong server config.
    - Nexus Bytes LLC- Ryzen powered NVME VPS and web hosting, packed with perks and love!
    - Entry Bytes - Affordable VPS Cheap quality
    - USA (NYC | Miami | LA) | Europe (London, UK | Naaldwijk, NL) | Asia Pacific (Singapore | Japan | Australia)

Similar Threads

  1. Replies: 3
    Last Post: 08-17-2011, 02:47 PM
  2. Dedicated Server Configuration for 5000 visitor/day
    By davinneal in forum Dedicated Server
    Replies: 8
    Last Post: 11-06-2008, 12:53 AM
  3. 400 - 500 sites on one server? What?
    By webadpro in forum Dedicated Server
    Replies: 25
    Last Post: 10-27-2005, 01:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •