Sometimes it is useful to give out htpassword protected access to certain areas of your web server (say if you are developing an app for someone and want to give them a preview). Here is a simple way to do it:
<VirtualHost 192.168.0.123:61233>
ServerAdmin my@email.address.com
DocumentRoot /path/to/directory/to/expose
ServerName myname
<Directory "/path/to/directory/to/expose">
AllowOverride All
</Directory>
</VirtualHost>
AuthName "SiteDemo"
AuthUserFile /path/to/directory/to/expose/.htpasswd
AuthType basic
Require valid-user
Order deny,allow
Deny from all
Allow from 192.168.0.0/255.255.0.0
Satisfy Any
# htpasswd -c /path/to/directory/to/expose/.htpasswd Bob
# /usr/local/apache2/bin/apachectl restart
|
Collector Comics is THE place to buy, sell, and research comics online. Launching soon.
Launch »
Screenshot »
|
|
Webitor is a kick-ass easy to use, easy to extend, non-database driven Content Management System. Version 2 with reseller plan coming soon.
Launch »
Version 1 »
|
|
GC Lounge is my own pet social network and test bed for social related code. Made by locals for locals.
Launch »
|
|
GG has indexed over half a million recent Trade Mark applications. This revolutionary tool is extremely valuable for industry experts.
Launch »
|
|
GCWiFi is the hub for techies interested in joining a ad-hoc wireless mesh spread across the Gold Coast
Launch »
|
|
Web based financial client management system
Launch »
|
|
OS Commerce modules and template modification
Launch »
|
| View More Projects » | |