Configuring The Hosts File On Linux Clients

In order to access your Wikidot server on your home network using other Linux PCs, you will have to edit your hosts file.

Linux Client PCs

If you have Linux PCs on your home network and want to access your Wikidot install, you need to edit your hosts file to include the specific site(s) you want to access. You'll need to know the internal IP address of your Wikidot server (192.168.0.103 is used in the example below). On Linux PCs, 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

# add entries for your local wikidot install
# here's some examples:
# main wikidot sites after initial install
192.168.0.103 www.mywikidot.com template-en.mywikidot.com profiles.mywikidot.com
# new sites you create
192.168.0.103 test.mywikidot.com anything.mywikidot.com myblog.mywikidot.com
# new tempaltes you create
192.168.0.103 template-blog.mywikidot.com
# for https (this may not be necessary)
192.168.0.103 https://www.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

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