Monday, July 29, 2019

Running multiple domains on one NGINX server

In addition to domain we have now registered domain for our planned business in Finland (mostly HW/SW consulting and financial and office management services).

As we are doing this part-time, we want to keep web hosting costs in control. Therefore we wanted to run the web pages of both domains on same server.

The original homepage of WestSloth Games ( has been running on single AWS Lightsail instance. In this solution, the monthly expenses are well-know in advance. But on the other hand server capacity is limited to some level. Anyways, the load for has not been too large for the Lightsail instance to handle it. So we thought we can easily run on same server too. webserver is built using NGINX, Gunicorn and Django framework plus local MySQL database. Web page is built using Bootstrap front-end framework.

Adding another domain to NGINX setup was done by following these instructions on applicable part:

First step that was required to get two separate domains running on same server was to divide original document root (/var/www/html) to two separate document roots (/var/www/ and /var/www/

Second step was to create new pages for, and that was basically copying Bootstrap template and remove all unnecessary parts there. This was placed under document root. Common static files like robots.txt were placed under document root.

In third step, original NGINX server block was duplicated (under nginx/sites-available). part was left mostly unmodified, because only changes were related to static file locations. server block was configured to listen port 80 and and server names. Also, document root and index was defined here.

Last step was to enable server blocks by creating symbolic links of nginx/sites-available to nginx/sites-enabled directory. NGINX will read these during the startup.

After restarting NGINX everything seemed to be working as expected. So now we can concentrate on editing the content of both web pages!


Thursday, July 25, 2019

We are officially a company!

After 6+ years of existence and hobby-based game development, WestSloth Games is now part of a freshly registered company called Westsloth Oy! My family member needed to set up a company for invoicing occasional work, and we decided it's time to make Westsloth a real game company!

To secure company's finances our main businesses are computer hardware and software consultancy plus office and financial management services. But game and app development stays as an essential part of Westsloth and we hope games will start generating revenue in the future.

This change does not have much impact the way we develop games: At the moment I am doing development on a part-time basis (my day job has priority). But of course things can change. And as before, we know we are still ramping up our game development competence and our target is to do every new game better than the previous one!

Transition to company control is ongoing and there will be some changes e.g. in WestSloth Games social media channels.

Check our latest published games from Google Play Store:

Follow us on:

Summary in Finnish: 
Olemme kehittäneet sivutoimisesti pelejä viimeiset 6+ vuotta. Toimimme nykyään osana Westsloth Oy:tä , jonka toimialoiksi on merkattu kaupparekisteriin ATK-laitteisto- ja ohjelmistokonsultointi, toimisto- ja taloushallinnon palvelut ja kaikki muu laillinen liiketoiminta (y-tunnus: 3012425-8). 

Meiltä löytyy saman katon alta osaamista tilitoimistopalveluista, tietokoneista (Windows/Linux/cloud) sekä pelien ja applikaatioiden kehittämisestä!