Howtos / Articles

Sticky Session Load Balancing with HAProxy

HAProxy provides a number of methods for maintaining a record of which backend server should handle a specific connection. This is known as creating a ‘sticky’ connection (other terms for this are ‘connection persistence’ and ‘connection affinity’). HAProxy can use the source ip address, url hash, cookies, sessions (checks cookies and url parameter), headers, and more, to determine which backend server to pass the connection to. Add one of the following lines to the HAProxy config file, in the section…

Read more [...]

Rewrite a http request to https with nginx

If you have a web server running nginx that accepts both http and https connections, there may be times where you want to prevent anyone from accessing a specific page/url using a insecure http connection. For example, login or registration pages. You always want these to be secure if you can. Add the following into the main “location /” block, located in the http “server” section in your nginx configuration file for your site. if ($request_uri ~* “/login.php”) { rewrite…

Read more [...]

Reboot a Cisco 7940/7960 series handset

To reboot a Cisco 7940 / 7960 serial VOIP handset without unplugging the power brick (or the ethernet port when using PoE / Power Over Ethernet), you can press the following three button combination: [*] + [6] + [Settings] The “Headset” button light will light up briefly and then turn off, then the same thing will occur with the “Mute” button light, and then finally the same will occur with the “Speaker” button light. The phone will then reboot. This…

Read more [...]

Default config unlock password on a Cisco 7940 / 7960 series handset

To change any configuration options on a Cisco 7940 or 7960 series voip handset itself (not over tftp), you need to enter in a unlock config password. This may be needed if you want to set up the handset with a static IP address. To get to the unlock config screen, press the “Settings” button, scroll down to “Unlock Config”, and press the “Select” softkey. You will now be asked to enter the password. The default password is “cisco”. As…

Read more [...]

Remove nginx version from HTTP response headers

Its usually a good idea to prevent users from being able to determine the version number of the web server software you are using. This helps prevent people from then going and looking for known vulnerabilities in that specific version, and attacking your site. When a HTTP response comes back to the web browser, it also includes a number of headers. One of these headers is the “Server” header. This is used to identify the web server software being used.…

Read more [...]



Page 21 of 38« First...10...17181920212223242526...Last »