# This is a sample htaccess you can use in your website
#
# We are currently using Apache 2.x for serving websites
#
# More info about this server can be found at:
#
#
http://httpd.apache.org/docs-2.0/
#
# By default etc/htpasswd is created with ALL the users you created
# in the siteadmin !
#
AuthUserFile /home/sites/site41/etc/htpasswd
#
# If you want to upload your own htpasswd file outside the apache
# docroot use the dat/ directory, this directory is editable by FTP
#
# AuthUserFile /home/sites/site41/dat/htpasswd
#
# Afcourse you can also place your own htpasswd file inside the
# apache docroot, as usual, people will _not_ be able to download any
# files starting with .ht*
#
# AuthUserFile /home/sites/site41/web/admin/htpasswd
AuthName validate
AuthType Basic
require valid-user
# It is very common to use a htaccess to point to errordocuments,
# these are the defaults
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
# In this case /error is a directory inside the the apache docroot
# (/web/errors), alternatively you can use something like:
#
# ErrorDocument 500
http://foo.example.com/cgi-bin/tester
# ErrorDocument 404 /cgi-bin/bad_urls.pl
# ErrorDocument 401 /subscription_info.html
# ErrorDocument 403 "Sorry can't allow you access today"
#
# It's also possible to change PHP settings using a .htaccess, some
# often user variables are:
#
# show errors on screen
php_flag display_errors On
# report errors
php_flag error_reporting 0
# register_globals, this is by default OFF
php_flag register_globals On
#
# More information can be found here:
#
http://httpd.apache.org/docs-2.0/howto/htaccess.html