Connecting the world…

hosts

www.booches.nl on a Synology DS107+

I wanted to buy a new USB disc for backing up all my files, but I didn’t know what to buy. A storage consultant told me about the Synology products. Together with some colleagues, we started to look at the different products. At the end we narrowed our search to the Synology DS107+. This is a NAS with a web server based on Apache and some other nice “tools”.

I started to play a little with the web server. At first I only found the option to run one single website, but I am running more than one website. So I started to look at different forums for modifying the configuration. At the end I found an article with described the way to configure the HTTPD daemon for using virtual hosts.

I took the following steps to enable the usage of virtual hosts:

  1. Edit the file /usr/syno/apache/conf/httpd.conf-user
      – Unquote the line: Include conf/extra/httpd-vhosts.conf
  2. Create the file /usr/syno/apache/conf/extra/httpd-vhosts.conf
      NameVirtualHost *:80

      <VirtualHost *:80>
      ServerName www.booches.nl
      DirectoryIndex index.php index.html index.htm index.shtml
      DocumentRoot /volume1/websites/www
      <Directory “/volume1/websites/www”>
      AllowOverride all
      </Directory>
      </VirtualHost>

      <VirtualHost *:80>
      ServerName os3.booches.nl
      DirectoryIndex index.php index.html index.htm index.shtml
      DocumentRoot /volume1/websites/os3
      <Directory “/volume1/websites/os3”>
      AllowOverride all
      </Directory>
      </VirtualHost>

      <VirtualHost *:80>
      ServerName www.emmastraat32.nl
      DirectoryIndex index.php index.html index.htm index.shtml
      DocumentRoot /volume1/websites/emmastraat
      <Directory “/volume1/websites/emmastraat”>
      AllowOverride all
      </Directory>
      </VirtualHost>

  3. Restart the HTTPD daemon
      /usr/syno/etc/rc.d/S97apache-user.sh restart

For WordPress to work, I had to create a database in MySql. This is simple with the MySql command line queries. It has been a long time for me playing with MySql, but it was fun nevertheless (Man, I sound like a computer geek….). I create the same user credentials for the WordPress database and added them to the WordPress configuration file.

Next I re-configured the static NAT entry on my Cisco 877W router, so you all are directed to the correct inside host. Now I am wondering if the NAS works and I am especially interested in the performance of the NAS. As far as I have noticed the performance is less in comparison to my IIS web server. I give it the benefit of the doubt for the time being…..or else back to my IIS web server.