• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Password Protection with htaccess on Rackspace Cloud Sites

By Abhishek Ghosh April 3, 2013 2:44 am Updated on April 3, 2013

Password Protection with htaccess on Rackspace Cloud Sites

Advertisement

Password Protection with htaccess on Rackspace Cloud Sites needs few extra steps to do otherwise the method is same that is normally done for any Apache2 webserver. Rackspace Cloud Sites is Application Platform as a Service (aPaaS) primarily targeted for hosting PHP-MySQL based web softwares including CMS and blogging softwares. Password Protection with htaccess on Rackspace Cloud Sites is actually not difficult, but for a new user it might take some time find it out. Here is how you can lock any folder or the root of domain hosted on Rackspace Cloud Sites with username and password.

 

Password Protection with htaccess on Rackspace Cloud Sites : Basics

 

There are many open source and free web softwares available on Github, installing them you can generate the .htaccess code if you want to use the feature and generate other .htaccess codes frequently. However, for the most; that much work is not needed.

The basic is that; the .htaccess will refer to a folder where the .htpasswd file will be. This .htpasswd file has this format to save the user name and password :

Advertisement

---

 

Vim
1
username:password

 

But what will happen if the .htaccess itself get hacked ? There will be no value of protection. So, that step must be done by adding allow / deny rule, see this guide :

 

Vim
1
http://wptidbits.com/wptidbits/21-most-popular-htaccess-hacks-for-wordpress/

1
 

Password Protection with htaccess on Rackspace Cloud Sites : Steps

There are three steps. We are taking that, you are using WordPress or some kind of CMS. Keep in mind, URLs with Query mark can escape this rule in case of WordPress. So, pretty urls must be working. Still there will be some URLs, which will escape. What we want to say, this is never a fool proof process. Except token based access control, it is not possible to secure in that way, still it does the thing you want. As you will need to create two dot files; for Windows OS, you can follow this method to create dot files. Or you can edit existing .htaccess file using Gedit. For Ubuntu or any other Linux, obviously you can easily create the dot files, for OS X you can use TextWrangler or any such code Editor. Obviously, there is Gedit for OS X too. The needed two files name are :

Vim
1
.htaccess

Vim
1
.htpasswd

 

Now, if you do not want to use own hosted software to create the required codes; you can use this website’s online .htaccess Password Generator :

 

Vim
1
http://tools.dynamicdrive.com/password/

 

You will see, they are asking in point 2 :

 

Path to .htpasswd file relative to your server’s root directory

 

This is actually the Linux path. There are many ways to get this path in case of Rackspace Cloud Sites, as basically it is not configured like normal web server. First, if you create a php file and place it in the required directory and execute it on your browser like we do for our WordPress Plugin development or in case of WordPress, you will get in some Plugin’s info page; for example in WP Super Cache settings page :
 

Password Protection with htaccess on Rackspace Cloud Sites

 

Or officially you can find this on  your Rackspace Cloud’s Control Panel’s > Cloud Sites > Click Website Link > Features Tab :

 

Password Protection with htaccess on Rackspace Cloud

 

Abhishek-GhoshTagged With iquidweb cloud sites htaccess
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Password Protection with htaccess on Rackspace Cloud Sites

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Installing WordPress on Rackspace Cloud Sites : Step by Step Guide

    Installing WordPress Rackspace Cloud Sites is very easy. However, Rackspace uses their own version of Control Panel. Here is full step by step guide.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. Avatarweebly.com says

    August 24, 2013 at 6:21 am

    This post gives clear idea for the new viewers of blogging,
    that really how to do running a blog.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy