How To Limit Apache2 Global Per IP Connections

Jan 27, 2008

Some limit connection mods can limit max connections per vhost, any mod can limit connections to apache server per IP?

View 3 Replies


ADVERTISEMENT

[Apache2] Enable/disable Concurrent Connections

Apr 28, 2009

Currently I use WHM/cPanel latest on a few boxes, I have (at least to my knowledge) copied the exact compile settings between servers, yet some of my servers allow me to do concurrent file downloads (using DownThemAll or another "accelerator") whilst others only let me make 1 connection. These servers also don't show me the final filesize while downloading. So my question is, what did I set/unset to cause this to happen? It's been bugging me for a month or so now and no amount of recompiling has fixed the issue (aside from a clean install of the OS/cPanel). I can provide a list of modules and other config settings if required.

View 3 Replies View Related

Limit Connections Per IP

May 15, 2008

How can I Limit connections per IP in IIS6?

For example 10 connection per IP is allowed in a minute.

View 0 Replies View Related

Limit # Ip Connections

May 31, 2008

on setting up some sort of firewall who only allows 10 connections from the same ip to avoid spamming, abuse on the server.

How should i do this?

View 3 Replies View Related

Limit Connections - DDOS

Dec 14, 2008

one of my friend say that if i install an apache module which one limit the users conection can help me to protect from ddos.

becaus one of my users domain is under ddos and i think that if i limit his conection, if sombody wants to do ddos and open conection foraxample up 30 he is attacker and ban.

is it right and how i can do it and limit a one user?

View 6 Replies View Related

Limit Connections Per IP/Hostname

Aug 25, 2007

How is this done? from what I gether, there's nothing built into apache which can do this which I personally think is a bit silly as it seems like a common thing. Can anyone offer any help (for apache 2).

View 5 Replies View Related

Hitting Connections Per Second Limit Of RedHat EL

Jun 11, 2009

I have a powerful 8 core 8gb ram web server with scsi raid drives running RedHat EL 4. This server handles 2,000 - 3,000 HTTP requests per second via Litespeed httpd without strain (over 60%+ CPU idle time during peak load, under 1% IO wait). As the traffic volume continues to increase I've encountered a strange problem, the symptoms of which are as follows:

- About 1/4 or 1/3 of new connections are not answered by the server - they time out.

- All connections that are answered have exactly 3 seconds added to the time it takes to establish connection with the server (can be seen as "Connecting to ..." phase in FireFox). HTTP response times were tested by Pingdom from multiple locations all over the world.

- The problem is either "on" or "off", it is not gradual.

- Server ping is unaffected during the problem - no delay and no packet drops.

- The problem does not happen during off-peak hours of the day.

If litespeed httpd settings are tweaked to keep as many connections as possible in keepalive state for as long as possible, the problem is avoided, while tens of thousands of connections are kept in keepalive state.

Possible causes that were tested and eliminated: PHP/MySQL load (problem applies to static files exactly the same), CPU / IO / RAM, network uplink, hardware firewall, DNS.

This makes me think that there is some kind of bottleneck of how many NEW connections per second the server can accept. By maxing out keepalive quantity and duration I'm reducing the number of new connections per second. This is a temporary fix that will only work up to a certain point.

After investigation, litespeed staff verified that my litespeed configuration was correct and after some testing said that nothing in litespeed was responsible for this limiting factor. Litespeed process uses relatively little CPU and can definitely handle more volume.

Following sysctl.conf values were increased substantially to see if that will make a difference: tcp_max_syn_backlog, tcp_max_tw_buckets, tcp_max_orphans, netdev_max_backlog, somaxconn, file-max. This didn't produce any results. Disabling syncookies didn't help either. dmesg doesn't have any notices of limits being hit or throttles being applied.

Litespeed staff suggests that likely some limit in linux kernel is being reached. The strange 3 second delay does seem like an "intelligent" DDOS protection strategy of some sort. Perhaps this is some kind of kernel level DDOS protection?

View 9 Replies View Related

Any Firewall For Windows To Limit Connections Per Ip

Apr 26, 2008

windows 2003

limit connections per ip to a port

im currently using routix netcom

it can limit the connections( NOT bandwidth) only but not per ip

another firewall which limit connections per ip

View 14 Replies View Related

Limited HTTPD Connections. How To Not Limit Them

Apr 13, 2007

When I SSH'd into my box, I received this message:

example.pl is on this server. HTTPD connections have been limited to restrict this script from overloading server. All servers that have hosted this file need to have extremely limited http connections or have this file removed. It is poorly written and intense on CPU/memory.

How do I go and allow example.pl to be run on my server again? I use it solely for personal sites, so I wish to not have this file blocked and be allowed to run. I've searched for almost an hour now so I figured I would go ahead and post to see if any more experienced members could assist.

View 3 Replies View Related

Rule To Limit Apache (port 80) Connections From 1 IP To 15

Apr 12, 2007

any good rule to limit Apache (port 80) connections from 1 IP to 15 with iptables/csf?

And total connections to the box to 100?

View 6 Replies View Related

How To Limit Num Of Connections Per Hosted Site On Ded. Server

Jan 24, 2007

OS: Linux, on Apache 2.0
=======

Would you know and kindly tell me if there's a way to limit X number of connections per hosted site?

Because I don't want someone with high traffic forum unfairly stealing most connections for himself, which makes other sites suffer in performance.

View 1 Replies View Related

How To Limit Http/mysql Connections Per Domain

Jun 22, 2007

how i can limit http and mysql connection limit on per domain basis.

View 2 Replies View Related

Limit Apache (thread) Connections Per Request

Jan 9, 2007

I've been having trouble the past few days with someone who's been "attacking" my site so to speak by continuously downloading very large files with as many connections as (he) can open. I operate a large downloads site for computer games, this person has selected the largest files (like 400-500MB). Not sure of the real intent other than to clog up my bandwidth capacity. Also he appears to be using proxies since as soon as I ban one, another shows up seeminly from China.

Anyway, I have mod_bw and I've limited the number of connections in the downloads area to 2. While that works ok, his tool uses threads like a download manager would and he's using up 30-40 child threads for his 2 file downloads.

So 2 questions,

Is there anyway to not only limit file downloads to 2, but limit the number of connections per request? Many of my visitors do use download managers and I'd like for them to continue using them but use a reasonable number of threads like 6 or 8, but not 30.

Also, is there a way to restrict access to someone using a proxy?

View 2 Replies View Related

How To Limit Connections Per IP Address Based On Domain + String

Oct 25, 2009

I need to do this:

(1) domain1.com limit to 10 connections per IP per 30 seconds but allow if accessing file beginning with x.php such as x.php?981 x.php?o19

(2) domain2.com limit to 10 connections per IP per 30 seconds only if accessing file beginning with x.php but allow if accessing file beginning with y.php y.php?981 y.php?o19 .....

View 8 Replies View Related

Apache2 Worm?

Apr 28, 2009

Usually our website traffic is about 50 MB/day in our dedicated server. From these past 2 days it's consuming 5 GB/day and Apache2 opens so many processes/connections that our router can't handle and turns our WAN/LAN extremely SLOW!

If the reboot the server, it calms down but soon the apache2 starts again to open the connection (+1000).

Can this be a worm? I'm using Ubuntu Server 8.04.

View 2 Replies View Related

Advantages Of Apache2?

Oct 25, 2007

I am still running apache 1.3 something on my debian vps but debian would really like to upgrade to apache 2 (Ie PHP5 updates).

So I wanted to ask what the advantages and disavantages of running apache2 is?

Can apache2 use a 1.3 httpd.conf?

View 4 Replies View Related

Restarting Apache2

Apr 4, 2009

Ive had this problem numerous times (website failed to connect error) before and the web management team tell me that apache2 needs to be restarted, seeing as they are not replying to my emails im gona try and do it myself.

i open up putty, login as root user, then what?

View 2 Replies View Related

Global Registry

Jan 2, 2009

i have both PHP(php4 & php5) together

PHP4.........CSO (defoult)

PHP5.........CGI

i have already transfered a site from another server to my server !

this website using PHP5 and they asked me to enable register_global
but i don`t know how to active register_global when PHP5 set as CGI
value will not be accepted when PHP5 set as CGI : php_flag register_globals 1
* i think the last server used Suphp ( i found some files like : php.ini in FTP)

View 1 Replies View Related

Apache2 Hangs The VPS Up

May 7, 2008

I have a problem. When MSN Search robot looks through my VPS, the machine is going "asleep", e.g. Apache2 (Port 80) doesn't answer at all. Here is the last falling:

Code:
23:14:15 up 4 days, 9:06, 5 users, load average: 37.18, 31.25, 27.46
I hardly ever can enter 'pkill apache2' to kill Apache2 processes. Here is my Apache2 configuration (timeouts, prefork, e.g.):

Code:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 20
KeepAliveTimeout 5

<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 2
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 400
</IfModule>

Maybe I configured Apache2 wrongly, but I only want to prevent this bad thing.

View 2 Replies View Related

Apache2 Lagging

Apr 13, 2008

I just wondered if anyone can help me out with an Apache problem. I currently run Debian 3.1 (on 10 GB space and 256 MB of RAM) with Apache 2.0.59 installed through apt-get.

Apache runs with 10 child processes running simultaneously to handle multiple requests at once. I have set up Apache to use virtual hosts for every single account since they are hosted on their own domains/subdomains.

I put in a crontab to restart Apache every 15 minutes. The reason being is because after a while, Apache will start lagging to display web pages. When it's restarted, it works just fine and fast. After roughly 10 minutes now, it will take roughly a minute for the request to finally send the data back to the browser. It's not the web page that causes it, it's Apache or some factor effecting it's performance.

Does anyone know what the cause may be or how to fix it? Personally, I think it might be a memory issue.

View 10 Replies View Related

Can't Get PHP Working With Apache2

Jul 30, 2007

I had php4 running as a module of apache2 on a debian sarge os.

i did the following to upgrade to PHP5

apt-get install php5 libapache2-mod-php5 php5-gd php5-mysql

But when i tried to start apache i got an error message saying that libphp5.so is corrupted or something.. (garbled - perhaps this is not an Apache module DSO?)

Now i just want to retore php4 working as it was !

i did apt-get remove php5 libapache2-mod-php5 php5-gd php5-mysql
and apt-get install php4 libapache2-mod-php4 php4-gd php4-mysql

but i can't find the php4.conf and php4.load on the /modules-enabled or /modules-available

tried to write those files manualy as php4.so exists with other libs.

apache does not load php

Quote:

host:/etc/init.d# apt-get install php4 php4-mysql php4-cli libapache2-mod-php4
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Paquets suggérés :
php-pear php4-pear
Les NOUVEAUX paquets suivants seront installés :
libapache2-mod-php4 php4 php4-cli php4-mysql
0 mis à jour, 4 nouvellement installés, 0 à enlever et 275 non mis à jour.
Il est nécessaire de prendre 0o/3258ko dans les archives.
Après dépaquetage, 6517ko d'espace disque supplémentaires seront utilisés.
Sélection du paquet libapache2-mod-php4 précédemment désélectionné.
(Lecture de la base de données... 35624 fichiers et répertoires déjà installés.)
Dépaquetage de libapache2-mod-php4 (à partir de .../libapache2-mod-php4_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Sélection du paquet php4 précédemment désélectionné.
Dépaquetage de php4 (à partir de .../php4_6%3a4.4.7-0.dotdeb.0_all.deb) ...
Sélection du paquet php4-cli précédemment désélectionné.
Dépaquetage de php4-cli (à partir de .../php4-cli_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Sélection du paquet php4-mysql précédemment désélectionné.
Dépaquetage de php4-mysql (à partir de .../php4-mysql_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Paramétrage de libapache2-mod-php4 (4.4.7-0.dotdeb.0) ...

Paramétrage de php4 (4.4.7-0.dotdeb.0) ...

Paramétrage de php4-cli (4.4.7-0.dotdeb.0) ...

Paramétrage de php4-mysql (4.4.7-0.dotdeb.0) ...

host:/etc/init.d# /etc/init.d/apache2 force-reload
Forcing reload of web server (apache2)...apache2: Syntax error on line 116 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php4.load: API module structure `php4_module' in file /usr/lib/apache2/modules/libphp4.so is garbled - perhaps this is not an Apache module DSO?

View 1 Replies View Related

Apache2 Error

Sep 10, 2007

I'm running Apache 2.0.54 on my server and just recently Apache has been giving me problems that I haven't been able to fix permanently. In my error log, Apache marks down "[error] (88)Socket operation on non-socket: apr_accept: (client socket)" roughly 3 to 4 times a second and then turns off. In SSH, I send a restart command and it tells me it's still running but then it says when I restart it again that it wasn't running.

My main concern is fixing Apache from showing this error and from crashing so much. I did some research and through inconclusive evidence, it seems like a crontab error (ironically Apache doesn't use any cron jobs I can see).

View 2 Replies View Related

Webmin To Run On Apache2

Mar 30, 2007

I have apache2 and I have minimal webmin 1.330 installed at /webmin/

Following this tutorial: [url]
I have done the commands it asks and I have added this to my sites-available:

Quote:

<VirtualHost _default_>
ServerName panel2.ipalaces.org
ServerAdmin admin@ipalaces.org
DocumentRoot /webmin/
DirectoryIndex index.cgi index.html
<Directory /webmin/>
Options ExecCGI
AuthName Webmin
AuthType basic
AuthUserFile /etc/webmin/htusers
require valid-user
</Directory>
</VirtualHost>

and added this to apache2.conf:

Quote:

SetEnv WEBMIN_CONFIG /etc/webmin
SetEnv WEBMIN_VAR /var/webmin
SetEnv SERVER_ROOT /webmin
SetEnv MINISERV_CONFIG /etc/webmin/miniserv.conf

Am i doing this right? I want to be able to access webmin from the URL panel2.ipalaces.org.
I did
Quote:

htpasswd -c /etc/webmin/htusers brian

and then set a password as "test" for brian. However it won't login.

View 1 Replies View Related

Win 2k3/ Apache2.2 - DNS Wildcard

Mar 16, 2007

got the VirtualHost entries for Appache, so each Domain points to a folder.

The (Windows-)DNS runs on the server, means i have to create a new DNS Reverse-Lookup and Folder for each Domain seperatly, but this workflow appears to be pretty stupid..

Now my question:

Anyone can tell me how to setup somwhat a "Wildcard / Catchall DNS", and also "Catchall VirtualHost", so each Domain is automatically pointed to the right folder? Any scripts needed for that?

View 4 Replies View Related

Apache2 To Lighttpd

Nov 3, 2007

to move my image host to lighttpd. Does anyone know any step by step tutorial to move to lighttpd?

View 8 Replies View Related

Upgrade To Apache2.2.6

Nov 8, 2007

I have server with fedora core 6 with plesk 8.2

how to make upgrading from apache2.0 to apache 2.2.6?

View 3 Replies View Related

Apache2 - Where To Set Maxclients

Aug 17, 2014

I am using Plesk 12 / Ubuntu 14.04

In PLESK 11 I could set maxclients, ServerLimit ..... in /etc/apache2/apache2.conf

But I cannot find these settings in apache2.conf.

Where to configure these settings, in which file?

View 6 Replies View Related

Global Load Balancing

Nov 14, 2008

Looking for quick, easy global load balancing solution. This is actually for a temporary situation (we need to move to a new DC and need to make this seamless as possible). Linux solution preferred if possible. What can we use to get this achieved?

How exactly does it work? does it need VPN between locations or is client redirected to a different IP somehow?

We would consider dedicated hardware solutions provided that we can get 2 pieces for under $2,000 total (ebay i guess).

View 11 Replies View Related

Global DNS To Enhance Google

Oct 5, 2009

Is there a way to use DNS system (eg. Power DNS) so that based on geographical location Googlebot will locate a localized version of the site and hence will get a higher ranking for that country?

View 4 Replies View Related

Install & Run Mod_deflate In Apache2

Jul 17, 2008

I want run mod_deflate in my serve my server is apache 2.0.63

How can I do this?

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved