07 May
Posted by: admin in: Apache Performance, Uncategorized
This time I will tell you about the range of HTTP errors that are starting with 4. HTTP errors that start with 4 indicate there is a problem or error at the client or user agent end. Most common are:
400 Bad Request:
The request could not be understood by the server due to malformed syntax. Pay [...]
02 May
Posted by: admin in: Apache Performance
Sometimes you need to deny directory listing on user input. For example, you don’t want your blog to be accessed at http://yoursite.com/blog, using only http://yoursite.com/blog/. This slash is added by mod_dir, that allows automatic adding of trailing slashes. A “trailing slash” redirect is issued when the server receives a request for a URL http://servername/foo/dirname where [...]
On busy servers you might need to take off everything that is not used. If Apache logs are neither watched nor analyzed, you should simply turn them off. How to do it? Simply, as usual: open httpd.conf and unload
#LoadModule log_config_module modules/mod_log_config.so
by commenting this line. You should also search for various log strings that should be [...]
Sometimes you need to have a look at Apache status, especially, if your server serves many users and if often busy. You should monitor you server’s CPU load, and view other Apache performance information.
There is a simple solution in httpd.conf, that allows you to do this directly from your browser. All you need is just [...]
If your server does not have any kind of graphic interface (Directadmin, Cpanel, etc…), you’ll have to create Apache Virtualhosts manually. You will need a working Virtualhost template for this. Using Apache example will guide you to problems with .htaccess files, therefore it will work too. I will show you a working example for Apache [...]
21 Apr
Posted by: admin in: Apache Performance, htaccess Solutions
Sometimes we need to close access to cerain file types. We often deny directory listings and think that’s enough. But even if the files will not appear in directory indexes this will not imply that access to the files will be denied and if a remote user knows the exact location of the file, [...]