Monday, July 29, 2019

Running multiple domains on one NGINX server


In addition to westsloth.com domain we have now registered westsloth.fi 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 (westsloth.com) 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 westsloth.com has not been too large for the Lightsail instance to handle it. So we thought we can easily run westsloth.fi on same server too.

Westsloth.com 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:
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

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/ws.com/html and /var/www/ws.fi/html).

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

In third step, original westsloth.com NGINX server block was duplicated (under nginx/sites-available). Westsloth.com part was left mostly unmodified, because only changes were related to static file locations. Westsloth.fi server block was configured to listen port 80 and westsloth.fi and www.westsloth.fi 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!

-Jussi.

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:
https://play.google.com/store/apps/dev?id=5608008400672115508

Follow us on:
http://www.westsloth.com/
https://twitter.com/WestSlothGames



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ä! 


-Jussi