Other stuff...

www.booches.nl on a Synology DS107+

René Jorissen on May 15, 2008 0 Comments • Tags: #107 #ds #host #hosts #httpdvhostsconf #httpdconfuser #synology #virtual

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.

The following two tabs change content below.

René Jorissen

Co-owner and Solution Specialist at 4IP Solutions
René Jorissen works as Solution Specialist for 4IP in the Netherlands. Network Infrastructures are the primary focus. René works with equipment of multiple vendors, like Cisco, Aruba Networks, FortiNet, HP Networking, Juniper Networks, RSA SecurID, AeroHive, Microsoft and many more. René is Aruba Certified Edge Expert (ACEX #26), Aruba Certified Mobility Expert (ACMX #438), Aruba Certified ClearPass Expert (ACCX #725), Aruba Certified Design Expert (ACDX #760), CCNP R&S, FCNSP and Certified Ethical Hacker (CEF) certified. You can follow René on Twitter and LinkedIn.

Latest posts by René Jorissen (see all)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.