In the previous article we installed nginx from source. However, installing from source does not create an init script.
Let's create such a script so we can easily start, stop and restart nginx and, perhaps more importantly, ensure it automatically starts on a reboot.
nginx is a popular server for those who do not need the bulk and extra services that Apache may offer.
Unfortunately, nginx is not in the standard (officially supported) repositories that Ubuntu LTS (Dapper) uses. As such, let's look at installing nginx from source.
Secure connections to your website are vital when entering passwords or entering administration areas.
This article will take you through creating a self-signed certificate and configuring your virtual host to use https (port 443) connections.
The previous Ubuntu LTS Apache Virtual Hosts article introduced the basics of the setting up virtual hosts.
This allowed us to serve multiple domains from a single IP address and Slice. Now we can look in detail at the settings available to us in the Virtual Hosts files and introduce some new ones.
Now we have Apache installed and running, we can configure it to serve multiple domains using Virtual Hosts.
Do note the layout used in these articles is explained here - feel free to use the directories of your choice.
Continuing from the first LTS Apache configuration article, we now look at some of the other settings in the main apache2.conf file and what they can do.
Concentrating on efficiency and security, this will end our apache2.conf journey (for now).
Let's take a look at the main apache2.conf and ports.conf for our LTS (Dapper) install.
We're not actually going to change a lot at this point, just look at the main settings and see what they mean and what a change will actually do.
Ubuntu LTS (Dapper) uses a Debian based Apache layout which differs from the 'classic' layout you may have encountered from other distributions.
The differences are not huge and, indeed, help in configuring and deploying websites.
Ubuntu LTS (Dapper) comes with Apache v.2.0.55 and PHP v.5.1.2. and is easily installed via the 'apt-get' command.
The advantage of using packages is that you will get any security updates from Ubuntu (if and when distributed) and dependencies are automatically taken care of.
Now we can install MySQL and Ruby on Rails with subversion and postfix support.
In page 1 of the Ubuntu LTS setup, we completed the ssh configuration along with a basic iptables install.
Let's move on and install some personal configuration files to make our life easier. Once done, we can update the install and create a solid base for the 'meat' of the server.
In this Ubuntu LTS setup guide, we have a basic Ubuntu LTS slice, either a new slice or a reinstalled slice.
Now we need to access the slice and secure it as soon as possible.
Until the new OS images are available you may think you only have a single choice with Ubuntu and that's Ubuntu LTS (supported until 2011).
However, you are able to upgrade to Feisty (supported until 2008).