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, Ubuntu Feisty comes with an older version of nginx (0.4.13). As such, let's look at installing nginx from source.
Proxying requests to a mongrel cluster is one of the ways of serving your Ruby on Rails web application.
Let's create a cluster of mongrels and configuring it to survive and restart after a reboot.
There are several ways of serving a Ruby on Rails application, one of which is to use Apache to proxy requests to mongrels.
There are a few ways of completing this and we're going to look at one simple solution. Other ways will be looked at in future articles.
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 Feisty 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 Feisty 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 Feisty 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 Feisty uses a slightly different Apache layout than you may have encountered if you have used Apache with non Debian based Operating Systems.
The differences are not huge and, indeed, help in configuring and deploying websites.
Ubuntu Feisty comes with Apache v.2.2.3 and PHP v.5.2.1. and is easily installed via the 'aptitude' 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.
As such, we can now install MySQL and Ruby on Rails with subversion and Postfix support.
In page 1 of the Ubuntu Feisty 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 Feisty guide, we have a basic Ubuntu Feisty slice upgraded from Ubuntu LTS as shown in this article. Do note that the upgrade should have been conducted on a barebones LTS install.
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).