Apache

Apache installation and bugs post.

             Apache Tomcat manager Apps Forbidden error When we install Apache tomcat on the server and try to access manager gui apps . It doesn’t allow access and gives forbidden error. It indicate that either you typed 3+ incorrect credentials (try another web-browser) or you’ve …

                                  Configure mod_security for Apache on Centos 7 ModSecurity and mod_evasive are free Apache modules which protect your web server from various brute force or (D)DoS attacks, including SQL injection, cross-site scripting, session hijacking, and many others types of attacks..   Mod_security is an apache module …

Run/Include php code in .shtml   To run php code in .shtml add below Apache directive’s either in .htaccess .   # vi .htaccess AddType text/html .shtml AddHandler server-parsed .shtml AddType application/x-httpd-php .shtml RemoveHandler .shtml .html .htm Options Indexes FollowSymLinks Includes XBitHack on DirectoryIndex index.shtml …

How to enable server side(SSI) include in Apache   What are SSI? SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing …

         How to enable Apache server status Go through below steps to enable server status in apache   Step 1: Check mod_Status module is compiled with Apache. Check mod_status module is loaded is DSO modules list. # LoadModule status_module modules/mod_status.so   Step 2: Comment out …

                                                       Apache Multi-Processing module(MPM)   This Multi-Processing Module (MPM) implements a non-threaded, preforking web server that handle’s Apache users requests. It is best for isolating each request, so that problem with a single request won’t affect any other running reuest. How it Works: A single …

Important Apache error codes: Request successful: 200 – ok whatever request client is sent to web server is available on server and server is ready to fulfill the client request. Means everything is going smoothly.   201 – Created When new pages created by web …

You can enable/set up cache validator from .htaccess.  Insert below code in your .htaccess file and restart Apache server.   ========================================= <IfModule mod_expires.c> ExpiresActive on # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault                          “access plus 1 year” # cache.appcache needs re-requests in FF 3.6 …

Apache Performance tuning :   1) Hardware and Operating System Issues:   The single biggest hardware issue affecting web server performance is RAM. A web server should never ever have to swap, as swapping increases the latency of each request beyond a point that users …

1 2 3