By Frank Bieser, Big Head Press
http://bigheadpress.com
http://bigheadpress.bit
THE PROBLEM
Now that you have your .bit domain registered and updated with your web sites IP address, you need to reconfigure and re-start your web service, so it will recognize the new .bit name.
If you’re on WordPress, that can be done from the WordPress install. We have code and directions for doing that here.
THE SOLUTION
For non-WordPress sites, below is the info from the Web server end to make things link and work perfectly:
These steps should work for any flavor of GNU/Linux running one of the Apache web server variants. If it supports name-based virtual-hosting, the VirtualHost, serverName, and ServerAlias items will be there (and they are the only ones we care about). If you are running a website on AWS, good chances you are running it on an Ubuntu GNU/Linux instance with apache2, which is what I will use in my examples….
Start by editing the web service config file you modified when you set your site up initially with your favorite linux editor. Let’s assume your site was mydomain.com.
Code: Select all
$ vi /etc/apache2/sites-enabled/000-default
Code: Select all
<VirtualHost *:80>
ServerName http://www.mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot /var/www/mydomain
[…]
</VirtualHost>
Code: Select all
<VirtualHost *:80>
ServerName http://www.mydomain.bit
ServerAlias mydomain.com *.mydomain.bit
DocumentRoot /var/www/mydomain
[…]
</VirtualHost>
Code: Select all
$ sudo service apache2 restart
IN CONCLUSION
This will serve your Dot-Bit sites up with all links and images showing the .bit links, which would keep you drone-proof if your .com domain name were seized. And this workaround does not affect the serving of your Dot-Com site from the same files.