Apache file download stops
I have a quite peculiar problem. I have a website that is running on a ubuntu server under Apache2. I have realised "file storage" for small files in the MySQL database as longblobs. All of this works flawlessly. During the download the whole site stops responding, every new request runs into a timeout. The download is continuing fine. When the download gets to 4MB remaining, the website starts functioning again, but very slowly. When it is finished, the site is completely back to normal.
During the time of the download there are only 6 open SQL connections. The server is connected via an unmetered 1Gbps line. No database, no t too much coding, no FTP server involved.
I promise. The only thing that is VITAL is that the htpasswd file is not accessible to the general public usually it is not. The next step is to tell the Apache web server that Indexing should be allowed for a certain directory. This setting usually resides in the httpd. Note that there is a separate switch Indexes only. You may find more detailled information here.
Apache Lounge Webmasters. Keep Server Online If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation. Thank You! Steffen Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored. As Dave Drager said, i could semplify this keeping those file outside the web accessible directory.
But those directory's will contain others files too, images, and stuff used by my users, so i'm simply try to not have a duplicate folders system, like:. From the Order documentation section:. Yes, this is all possible. However if you have programs on the server that need to access text files, they should reside out of the web root.
There is no reason to place them in the public html folder. In addition to removing them from the web folder, make sure unix permissions are set correctly on them. The user of the scripts would need to have read write?
See the follow site for many examples, one of which should fit the bill. You can use Linux ACLs. After reading you all, I noticed that the.
But my folders are dynamically generated. I don't think that copy the. As Dave said, the logical way should be storing the config text files outside the web-accessible folder. But in every folder i have to store other files, images for examples, that must be web-accessible Therefore, I'll need to change even the apache configuration to include the config folder in the php allowed path.. There is a decent explanation on Wikipedia about Unix file permissions. I tested it now on my local PC Win7 64bit - there is everything ok.
I installed IPv6 Protocoll - no difference. I really wonder why the Apache 2. There are networking changes in 2. Networking changes are a good hint. I will make a small donation for the help. For 2. Seems to work correctly now - finnaly.
0コメント