Moving blog host
Just moved my blog host . Anyway I guess I should detail the process.
A. Blogger Settings.
The publishing settings for this blog had to be changed in Blogger. At the top it states "You're publishing via ..." and just underneath ("Switch to:") it allows you to switch publishing modes. I selected FTP which then required the following settings to be set:
- FTP Server [ users.isp.com.au ]
This is the server files for a web site etc. are uploaded to.
- Blog URL [ http://users.isp.com.au/username/blog/myblog.html ]
This is the address where the blog is viewed from. It must begin with http://
- FTP Path [ blog/ ]
This is the path where the blog files are stored, it begins in your ftp root directory.
- Blog Filename [ myblog.html ]
This is the name of the blog main/index file.
- FTP Username and FTP Password [ both blank ]
You can fill in these fields so that blogger automatically uploads your files via ftp. Otherwise you have to enter them in evertyime blogger uploads a file, I think this is better as the less sensitive data floating around the better.
Once those fields are filled in, hit "Save Settings" and then press the "Republish" button near the top. For some reason it didn't seem to publish all the files to the new site the first time round. Check the details and see if all the files were published, if not you may have to hit the "Republish Entire Blog" button.
B. Password Protecting.
Since this blog is generally for personal reference I thought it'd be prudent to password protect it. So here's the steps I took, note that for some reason FTP operations didn't seem to work unless it was in passive mode.
1) Create a text file called ".htaccess", this provides details on the directory to be protected (in this case the blog directory). Enter the following in (text enclosed in braces are comments):
AuthUserFile /ftp/home directory/path of directory to protect/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected directory warning"
AuthType Basic
require valid-user
2) Upload this ".htaccess" file into your FTP root/home directory.
3) Create another text file called ".htpasswd", this contains the user details that used to verify users requesting access to the protected directory. The file consists of lines of the format "username:password" where the user name is in plain text and the password is encrypted. The following sites can generate encrypted passwords:
http://www.euronet.nl/~arnow/htpasswd/
http//www.inch.com/tech/HOWTOS/htaccess/htpasswd.html
4) Upload this ".htpasswd" file into the directory to be protected as specified in the .htaccess file.
Now go to the new blog site and voila, a password protected blog!
References:
Google 2005, How do I setup an FTP (or sFTP) connection to my external web host? [Online, accessed 5 Mar. 2005]. URL: http://help.blogger.com/bin/answer.py?answer=121
TPG Internet 2004, Frequently Asked Questions [Online, accessed 5 Mar. 2005]. URL: http://www.tpg.com.au/helpdesk/faqs.php
A. Blogger Settings.
The publishing settings for this blog had to be changed in Blogger. At the top it states "You're publishing via ..." and just underneath ("Switch to:") it allows you to switch publishing modes. I selected FTP which then required the following settings to be set:
- FTP Server [ users.isp.com.au ]
This is the server files for a web site etc. are uploaded to.
- Blog URL [ http://users.isp.com.au/username/blog/myblog.html ]
This is the address where the blog is viewed from. It must begin with http://
- FTP Path [ blog/ ]
This is the path where the blog files are stored, it begins in your ftp root directory.
- Blog Filename [ myblog.html ]
This is the name of the blog main/index file.
- FTP Username and FTP Password [ both blank ]
You can fill in these fields so that blogger automatically uploads your files via ftp. Otherwise you have to enter them in evertyime blogger uploads a file, I think this is better as the less sensitive data floating around the better.
Once those fields are filled in, hit "Save Settings" and then press the "Republish" button near the top. For some reason it didn't seem to publish all the files to the new site the first time round. Check the details and see if all the files were published, if not you may have to hit the "Republish Entire Blog" button.
B. Password Protecting.
Since this blog is generally for personal reference I thought it'd be prudent to password protect it. So here's the steps I took, note that for some reason FTP operations didn't seem to work unless it was in passive mode.
1) Create a text file called ".htaccess", this provides details on the directory to be protected (in this case the blog directory). Enter the following in (text enclosed in braces are comments):
AuthUserFile /ftp/home directory/path of directory to protect/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected directory warning"
AuthType Basic
require valid-user
2) Upload this ".htaccess" file into your FTP root/home directory.
3) Create another text file called ".htpasswd", this contains the user details that used to verify users requesting access to the protected directory. The file consists of lines of the format "username:password" where the user name is in plain text and the password is encrypted. The following sites can generate encrypted passwords:
http://www.euronet.nl/~arnow/htpasswd/
http//www.inch.com/tech/HOWTOS/htaccess/htpasswd.html
4) Upload this ".htpasswd" file into the directory to be protected as specified in the .htaccess file.
Now go to the new blog site and voila, a password protected blog!
References:
Google 2005, How do I setup an FTP (or sFTP) connection to my external web host? [Online, accessed 5 Mar. 2005]. URL: http://help.blogger.com/bin/answer.py?answer=121
TPG Internet 2004, Frequently Asked Questions [Online, accessed 5 Mar. 2005]. URL: http://www.tpg.com.au/helpdesk/faqs.php
Labels: computers
0 Comments:
Post a Comment
<< Home