Configuring The Ubuntu Server Hosts File

After your initial instal and configuration of your hosts file, it will be necessary to edit your hosts file each time you create a new site or master template site.

Your Wikidot Server

On your Ubuntu server install, the hosts file is located in the /etc/ folder. The file name is simply hosts (no file extension). You can edit the file using gedit, nano or any other text editor.

127.0.0.1 localhost
# wikidot sites after initial install
127.0.0.1 www.mywikidot.com profiles.mywikidot.com template-en.mywikidot.com
# new sites you create
127.0.0.1 test.mywikidot.com anything.mywikidot.com myblog.mywikidot.com
# new tempaltes you create
127.0.0.1 template-blog.mywikidot.com

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Discuss This Article


Discuss This Article

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License