CSF How To Config Limit Theart When Download Direct Files
Dec 25, 2008
I have an server linux OS CentOS 5.2 and using firewall CSF. and need question.
how to limit download theart ( limit connecting when download files ) EX : 4 connecting or 8 or 16 connecting ( my Guest using soft Internet Download Manager ).
For example, my website [url]and Direct links are: [url]. how to limit theart (Connecting) when Guest download which and using soft internetdownloadmanager, flasget.
I have a website which has a FLV player serving .flv files which are hosted in the server. I notice that some users are directly downloading the files using the direct URL and they seem to be using download managers for that which is opening several Apache connections and open slows down Apache. I want to prevent this. I thought of preventing it using a .htaccess file but did not help. This is what I used:
<Files *> order allow,deny allow from 127.0.0.1 allow from localhost deny from all </Files>
I thought this would work but it doesn't as it is blocking the FLV player from playing the file. Can anyone tell me the right way to do it?
I have a website, where i provide streaming videos. Recently i read somewhere that, streaming video or audio files increases server load a loot. Is providing direct download to files is a better option than streaming videos? Please let me know.
I have a 2003 SBS server with about 50 users on exchange. It is a standalone DC - all the users connect with 'profiles' and 'docs' on the server and use exchange thru outlook..when they leave the office they VPN in and exchange works like a charm.
Problem is for a quick setup I've used the POP 3 connector and kept the emails hosted on my server - I want to get rid of the POP3 connector setup altogether and have mail delivered directly to the server.
Can someone give me a walk thru of steps to do this - so far I have fgured out that I have to add the domain to the recipient policy - configure it properly and then setup each user to receive email for that username and it will just work....
I want to be sure and was hoping that someone who has done the same thing could point me to an accurate tutorial of sorts.
We have several site that are downloading. how may i limit this site limit bw,omit speed download,limit connection and ... ecause this sites have very download and ...
in wordpress is wp-includes folder, i dont want anyone just execute file from this directory so it just serve wordpress not any malicious file be executed from there,
so i added this rule into /wp-includes/.htaccess: RewriteRule ^(wp-includes)/.*$ ./ [NC,R=301,L]
I just went to a box for myself, and just realized that my ram is closing in on it's limit.
We have 1gb of ram, yet we have around 50MB left.
We run 2 forums, with around 200 concurrent to 2000 on peaks. ( Currently it's 200 concurrent. )
Just hoping somebody could take a look at my httpd.conf and my my.cnf to see if I should tweak anything.
Ran top shift+m, and find that alot of apache connections is using 5mb per process:
Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3173 apache 15 0 73672 51m 3924 S 0.0 5.1 0:56.63 httpd 4790 apache 15 0 73676 51m 3912 S 0.0 5.1 0:13.36 httpd 4980 apache 15 0 73672 51m 3908 S 0.0 5.1 0:08.21 httpd 3172 apache 15 0 69844 48m 3940 S 0.0 4.8 0:45.93 httpd 5096 apache 15 0 69872 48m 3896 S 0.0 4.8 0:06.21 httpd 4394 apache 15 0 68544 46m 3912 S 8.2 4.6 0:20.24 httpd 4256 apache 15 0 68540 46m 3912 S 0.0 4.6 0:30.12 httpd 3729 mysql 15 0 130m 35m 4968 S 2.0 3.5 147:49.81 mysqld 4003 psaadm 15 0 48212 34m 23m S 0.0 3.5 0:27.61 httpsd 1489 apache 15 0 53056 31m 3928 S 0.0 3.2 1:10.80 httpd 1538 apache 15 0 52692 31m 3928 S 0.0 3.1 1:15.86 httpd 1452 apache 15 0 52636 31m 3932 S 0.0 3.1 1:24.45 httpd 2098 apache 15 0 52576 31m 3976 S 0.0 3.1 1:10.90 httpd 1450 apache 15 0 52556 31m 3940 S 0.0 3.1 1:24.80 httpd 1457 apache 15 0 52484 31m 3964 S 0.0 3.1 1:22.13 httpd 1718 apache 16 0 52444 31m 3964 R 30.7 3.1 1:27.99 httpd
httpd.cnf ( Please tell me if I have missed anything out. )
Code: # # Timeout: The number of seconds before receives and sends time out. # Timeout 60
# # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off
# # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100
# # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 10
# prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 2000 </IfModule>
# worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
my.cnf:
Code: [mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1
I'm using oscommerce on a PHP5/Apache 2 installation. I've got several virtualhosts, and I'm using webmin to administrate them. I've just moved to this new server, and now files are being played in browser instead of downloaded....I thought I had changed the mime.types file correctly, but obviously not...
Here is the content of it: Code:
# This is a comment. I love comments.
# This file controls what Internet media types are sent to the client for # given file extension(s). Sending the correct media type to the client # is important so they know how to handle the content of the file. # Extra types can either be added here or by using an AddType directive # in your config files. For more information about Internet media types, # please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type # registry is at [url].
When deploying new server/servergroup/cluster to your IT infrastructure, deployment (simplified) consist of following steps:
OS installation: to do it over network, boot server must be configured for this new server/servergroup/cluster,
configuration/package management: configuration server has to be aware of the newcomer(s),
monitoring and alerting: monitoring software must be reconfigured,
performance metrics: a tool for collecting data must be reconfigured.
There are many excellent software solutions for those particular jobs, say configuration management (Puppet, Chef, cfengine, bcfg2), monitoring hosts and services (Nagios, Zabbix, OpenNMS, Zenoss, etc) and performance metrics (Ganglia, etc). But each of these tools has to be configured independently or at least configuration has to be generated. What tools do you use to achieve this?
For example, when you have to deploy a new server, how do you create configs for, let's say, PXE boot server, Puppet, Nagios and Ganglia, at once?
I'm running a remote dl site where user will request a file from various file sharing site like rapidshare and megaupload, and allow it to stream and dl. Few days ago everything was normal, but since yesterday all rar files download have corrupt name and sizes but when trying to extract it seems to be corrupted, zip files are running fine though.
I am having trouble with moving my files to another server.
i have 1 servers, 1 hosting account (no ssh), both are using different control panel and i need to move all of the media files(movies) in the hosintg account to other server since hosting account contract will expire soon.
So, i am thinking of using FTP to transfer multiple files using mget command for FTP. But the thing is i will need to be there any press enter( to accept download) for every single files to be download. Which is very time consuming since i have hundred of files to move.
So my question is: 1/ is there a better way to move files in this situation?
2/ or Is there a shell script that i can use to download all of the file to my server without pressing enter accepting every single file?
Is there any command to generate it? The httpd.include is there but httpd.conf is not picking it up. Suppose there is a "middle" man to connect the vhosts httpd.include and httpd.conf
I followed the following KB to allow country to be identified via GeoIP in AWStats: [URL] .... It works well on one of my domain, but I had to disable first the stats through PLESK Admin, then to reactivate it, so it would regenerate the conf file in /usr/local/psa/etc/awstats/* for a particulair domain. I then followed this KB to re-calculate all stats with country identification: [URL] .... It works as well.
But now: How can I regenerate all the conf file in /usr/local/psa/etc/awstats/* ? Is there any magic command?
I committed a fault, I reinstalled apache2 in my dedicated server, all my apache config files are missed so now plesk not work, i have 3 domains in production w and all are broken ...
error: Not Found The requested URL / was not found on this server.
I tried to reconfigure but: psa/admin/sbin/httpdmng:: No such file or directory
There is a solution to restore my apache2 old installation w files config?
I'm setting up a web site for my online music library, doing it the hard way and learning as I go!
What I want to do I keep all the audio files secure so only registered users can get at them, how do I do this? FTP? permissions? Can I pass the user data from the client database somehow or do I have to set it up manually for each client?
I'm using php and mysql and have a table set up with all the file locations in it and that side of things is mostly working well. Once a user gets the URL of the file how do I make sure only that user can download the file?
I've tried searching the web for info but I have the sneaking suspicion I'm not asking the right question.
I have a problem with users that want to download files that are in a protected folder. They don't get the login popup when the click on a link, if they use a direct url then they get the login but the download doesn't begin.
iPhone OS 7.12
Plesk Control Panel version: psa v8.4.0_build20080505.00 os_Windows 2003/2008 Operating systemMicrosoft: Windows 5.2;build-3790;sp2.0;suite272;product3
I been having a heck of a time just with this one cpanel server and open files limit. At first using open_files_limit did not work so I changed it to open-files-limit that seemed to work but now it rejects the value and sets its down to 65535.
Then system open files limit is 500000. I try to set it to any value about 65535 in my.cnf and here is usual error:
090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535 090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535
When I run something like the tuning-primer it shows:
Current open_files_limit = 120510 files
The open_files_limit should typically be set to at least 2x-3x that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
But Im not sure if it is just reading my.cnf or something. I am still getting complaints from users about lost connections and I see the errors in error log. Ive looked everywhere and cant seem to find a solution to this.
I have a RHEL 4 plain server, and im using vsftpd server, i can not find an option to specify the max size for uploading files... does anybody know something about this?