Oct 28

Apache HTTP Server in Debian/Ubuntu

Apache is the most widely used HTTP-server in the world today. It surpasses all free and commercial competitors on the market, and provides a myriad of features; more than the nearest cmpetitor could give you on a UNIX variant. It is also the most used web server for a Linux system. A web server like Apache, in its simplest function, is software that displays and serves HTML pages hosted on a server to a client browser that understands the HTML code. Mixed with third party modules and programs, it can become powerful software, which will provide strong and useful services to a client browser.

Setting from Beginning

Apache Installation

$ sudo aptitude install apache2

$sudo apt-get install apache2-utils apache2-common

NameVirtualHost

With the default configuration you are only serving up one site, and that site is based on your IP address. What I’m setting up is name-based virtual hosting, meaning the Apache server will serve specific content based on the domain name requested. In this way a single server can host multiple sites, and serve up unique content based on the domain requested.

My preferred method of using name based virtual hosting is creating a separate file for each domain. These can all be done within one file, but I’ll be creating a new file for each site. Read the rest of this entry »

Aug 08

Recover Kernel

Recover old Kernel

In case new kernel is not functioning well the following step will drive you to recover old kernel.

Restart your FreeBSD Machine

shutdown -r now

Stop the normal booting process by press option 6 [Escape to loader prompt] in your keyboard.

Enter the following command.

unload

load  /boot /kernel.old/kernel

boot

Now your previous kernel will be recovered.

Check your kernel version now

$uname -a

Read the rest of this entry »

Aug 03

NAT in FreeBSD

Network Address Translation (NAT)
IP Filter
Step 1: Install Kernel

Note: If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys. If you have an aversion to sysinstall and you have access to an “official” FreeBSD CDROM, then you can also install the source from the command line:

Read the rest of this entry »

» Newer posts