Howtos / Articles

IIS 7 Creating New Session When Switching to HTTPS

By default IIS 7 will generate a new session when accessing a site over a secure HTTPS connection. This can cause issues if you are switching between a HTTP and a HTTPS connection when dealing with a site that handles logged in users via sessions. Luckily this is a easy fix. Open up the Internet Information Services (IIS) Manager, and select the web site you wish to change the setting on: Open up the “ASP” feature: Expand the “Session Properties”…

Read more [...]

Restart a IIS7 Web Site via the Command Line

This guide shows you how to restart a specific IIS 7 web site from the command line. This can come in very handy if you need to automate restarting the site. IIS 7 includes a command line management tool called “appcmd.exe” which allows you do do a wide range of tasks, including stopping and starting specific websites. The “appcmd.exe” program isn’t in the ‘PATH’ environment variable, so you must run it from within the correct folder, or add the folder…

Read more [...]

Set the X-Forwarded-For header on a nginx reverse proxy setup

When using Nginx as a reverse proxy you may want to pass through the IP address of the remote user to your backend web server. This must be done using the X-Forwarded-For header. You have a couple of options on how to set this information with Nginx. You can either append the remote hosts IP address to any existing X-Forwarded-For values, or you can simply set the X-Forwarded-For value, which clears out any previous IP’s that would have been on…

Read more [...]

Changing network interface numbers on Ubuntu

Have you ever replaced a network card on Ubuntu and found that it is now appearing as eth1, instead of eth0? Or simply wanted to swap the numbering of two network interfaces? This guide shows you how to do just that. Ubuntu uses the udev dynamic device management system, and automatically keeps track of what net card is assigned to what interface name. Udev allows for device name persistance using rule files, which are stored in “/etc/udev/rules.d/”. “70-persistent-net.rules” is the…

Read more [...]

Monitor your network for new hosts using arpwatch

For computers to communicate with each other over a network, they need to be able to know how to convert a IP address, into the physical address of the network card (MAC address). If your computer doesn’t have the MAC address for the specific host you are trying to communicate with, your computer will send out a broadcast ARP request, to find out who owns the IP you are trying to contact. These ARP requests are broadcast out over a…

Read more [...]

Page 23 of 38« First...10...19202122232425262728...Last »