moodle/lib/htaccess

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2002-09-16 06:33:53 +00:00
# On some PHP servers it may help if this file is copied
2002-09-16 07:08:33 +00:00
# to the main moodle directory and renamed .htaccess
2002-09-16 06:33:53 +00:00
#
# As soon as you do this, check your web site. Is it
# still working OK? If you are getting a "configuration
# error" then you may need to enable overrides by editing
# the main httpd.conf for Apache and in the main server
# or virtual server area, adding something like:
#
# <Directory /web/moodle>
# AllowOverride All
# </Directory>
#
### Firstly, if you are using Apache 2, you need the following
### three lines to allow Apache to pass a PATH_INFO variable
### correctly for URLs like http://server/file.php/arg1/arg2
<IfDefine APACHE2>
AcceptPathInfo on
</IfDefine>
### Secondly, set up some PHP variables that Moodle needs
2003-01-28 02:28:17 +00:00
php_value magic_quotes_gpc On
php_value magic_quotes_runtime Off
php_value file_uploads On
php_value short_open_tag On
php_value session.auto_start Off
php_value session.bug_compat_warn Off
2002-09-25 16:33:54 +00:00
### These are optional - you may not want to override php.ini
2003-01-28 02:28:17 +00:00
### To enable them, remove the leading hash (#)
2002-09-16 06:33:53 +00:00
#php_value upload_max_filesize 2M
#php_value post_max_size 2M
2003-01-28 02:28:17 +00:00
#php_value session.gc_maxlifetime 7200
2002-09-25 16:33:54 +00:00
### Optional definition of default files
#DirectoryIndex index.php index.html index.htm
### Change the following line to point to the error/index.php
### file in your Moodle distribution. It provides a form
### which emails you (the admin) about 404 errors.
#ErrorDocument 404 http://example.org/moodle/error/index.php