Tag Archives: .htacess

Mod_Python and Web.py on Ubuntu

Download First install mod_python for Apache and then restart/reload the server. apt-get install libapache2-mod-python /etc/init.d/apache2 force-reload apache2ctl restart Next grab the web.py framework from webpy.org. You can grab the tar or use easy_install depending on your setup. wget http://webpy.org/static/web.py-0.33.tar.gz tar xzvf web.py.tar.gz cd web sudo python setup.py install # or if you use easy_install easy_install web.py Download this file http://www.aminus.net/browser/modpython_gateway.py?rev=106&format=raw This python package can (with this version) [...]
Posted in Python | Also tagged , , , , , , | 3 Comments

Protect a Directory with Apache, .htaccess and httpasswd

Apache comes with a command line utility called “htpasswd”. This utility will generate a username and password that you can use to authenticate against using a .htaccess file. Just run the utility like so: htpasswd -c /path/to/your/password/directory/and-your-password-filename jane_doe_username This will prompt you for a password/confirm password. Keep in mind that this will not create [...]
Posted in Programming | Also tagged , | 1 Comment