geekytuts.net - www.geekytuts.net » geeky tips and tricks from everyday sysadmin experiences

Description: geeky tips and tricks from everyday sysadmin experiences

Example domain paragraphs

Here is one liner which gives you average memory consumption of php-fpm processes.

I had a case where Apache did not respect the directives in .htaccess with ‘ require ip ‘ and I couldn’t limit the website to certain addresses. The problem is that when Apache is behind a proxy ( HAProxy in this case ), the ‘ require ip ‘ will not pass the correct IP address. The correct IP address of the visitor is located in the ‘X-Forwarded-For’ variable. Therefore, .htaccess needs to be modified so that instead of ‘require ip’ , it will respect another variable into which we will pass the values of ‘X-

Below is an example of how it was solved in a case where it was necessary to request a password only if the website visitor did not come from a specific IP address which is added to the exceptions.”

Links to geekytuts.net (1)