Although we do use several web servers with Sifo such as Lighhttpd or Nginx (mainly for static files), truth is that almost all installations user Apache2 as their web server. We do provide step by step installations to run Sifo under apache, but this can be done in any other webserver.
In production, if you want to run a single project it performs better not using VirtualHosts at all, but since is very convenient in development time to manage several projects at once we present this configuration.
Depending on the Linux/Mac/BSD whatever flavour you are using the location for the default configuration files might change their path, or even the way they work.
The most common paths are:
A single file under:
/etc/httpd/conf.d/virtual.conf (create the new file
Several files under
/etc/apache2/sites-available/ and then linked in
ln -s /etc/apache2/sites-available/00-myfile /etc/apache2/sites-enabled/00-my-file
Other systems usually write the VirtualHost content inside the
Once you've located where you have to write the content and how, this is the content you need to write. Adapt paths to your installation:
IMPORTANT Verify that the
VirtualHost *:80 block matches EXACTLY with the entry NameServer of your apache, otherwise it won't work.