Results 1 to 25 of 25
-
03-08-2012, 05:30 PM #1Junior Guru Wannabe
- 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)
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/*"; }
-
03-08-2012, 05:31 PM #2Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
Install mod rpaf l.
-
03-08-2012, 05:34 PM #3Junior Guru Wannabe
- 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 ?
-
03-08-2012, 05:34 PM #4Web Hosting Master
- 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 ===================================================
-
03-08-2012, 05:36 PM #5Web Hosting Master
- 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.
-
03-08-2012, 05:40 PM #6Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
Their mod rpaf does not load for some reason.
-
03-08-2012, 05:51 PM #7Junior Guru Wannabe
- 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
-
03-08-2012, 05:53 PM #8Web Hosting Master
- 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.
-
03-08-2012, 07:10 PM #9
-
03-08-2012, 07:12 PM #10Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
- 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)
-
03-10-2012, 01:21 AM #11Junior Guru Wannabe
- 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)
-
03-10-2012, 04:22 AM #12Aspiring Evangelist
- Join Date
- Oct 2010
- Posts
- 446
just want to make sure if rpaf is truly loaded, is there
"rpaf_module (shared)"
if you run this command:
httpd -M-
-
03-10-2012, 07:37 AM #13CISSP-ISSMP, CISA
- 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.
-
03-10-2012, 08:21 AM #14Junior Guru Wannabe
- Join Date
- Aug 2007
- Posts
- 51
Code:root@server1 [~]# httpd -M | grep rpaf Syntax OK rpaf_module (shared)
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
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)
-
03-10-2012, 09:39 AM #15CISSP-ISSMP, CISA
- Join Date
- Aug 2002
- Location
- Seattle
- Posts
- 5,525
The XFF request header needs to be defined in your nginx.conf .
-
03-10-2012, 09:59 AM #16Junior Guru Wannabe
- Join Date
- Aug 2007
- Posts
- 51
-
03-10-2012, 06:48 PM #17Web Hosting Master
- 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)
-
03-11-2012, 12:54 PM #18Aspiring Evangelist
- 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
-
03-11-2012, 12:56 PM #19Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
- 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)
-
03-11-2012, 02:37 PM #20Aspiring Evangelist
- Join Date
- Apr 2009
- Posts
- 370
-
03-11-2012, 02:42 PM #21Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
- 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)
-
03-11-2012, 09:25 PM #22Aspiring Evangelist
- 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.
-
03-11-2012, 09:30 PM #23Web Hosting Master
- 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.
-
03-12-2012, 02:07 AM #24Aspiring Evangelist
- 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
-
03-12-2012, 02:28 AM #25Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
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
-
Potensial Visitor 20k, Daily Visitor 2k, What Server Should I Choose?
By Shinex in forum Web HostingReplies: 3Last Post: 08-17-2011, 02:47 PM -
Dedicated Server Configuration for 5000 visitor/day
By davinneal in forum Dedicated ServerReplies: 8Last Post: 11-06-2008, 12:53 AM -
400 - 500 sites on one server? What?
By webadpro in forum Dedicated ServerReplies: 25Last Post: 10-27-2005, 01:00 PM