This post is part of Tero Karvinen’s course: Linux as server. Even it is related to school mission it will offer usefull information about GNU/Linux!
My friend is kinda exact when it comes to money (something for me to learn). He was doing blogging in my server and used ip for accessing to his blog. I think it was very bad idea and I started to sort out is there cheap solution. Then I heard about dot.tk. They promise free domain and I could not believe it. Well I tried and seems like there is such thing as free . Here is how I did it.
First I went to http://dot.tk
Then entered the domain and clicked go. After that I needed to fill some specific information depended on my VPS provider Linode.
Thats pretty much it. I would say less is more what they are thinking at dot.tk. Then I added domain zone at my linode manager.
Dns configuration were done. I tried does it work.
$ firefox http://markushenri.tk
It led to the right place (my server). So it was working. I wanted to point it to my friends blog so I did virtualhost configurations.
$ sudoedit /etc/apache2/sites-available/markushenri.tk.conf
# domain: markushenri.tk # public: /home/example/public_html <VirtualHost *:8080> # Admin email, Server Name (domain name), and any aliases ServerAdmin firstname.lastname@example.org ServerName www.markushenri.tk ServerAlias markushenri.tk # Index file and Document Root (where the public files are located) DirectoryIndex index.html index.php DocumentRoot /home/example/public_html/ # Log file locations LogLevel warn ErrorLog /home/example/public_html/log/error.log CustomLog /home/example/public_html/log/access.log combined </VirtualHost>
Please not that if you like to make it work, you need to do log folder into public_html. I had done it before. More information here.
Then ctrl+x -> y -> ENTER
$ sudo a2ensite markushenri.tk.conf
$ sudo service apache2 restart
Then I tested if it is working.
$ firefox http://www.markushenri.tk
BOOM it was pumping!