mirror of
https://github.com/Pathduck/gallery3.git
synced 2024-10-29 21:07:18 -04:00
58 lines
2.1 KiB
ApacheConf
58 lines
2.1 KiB
ApacheConf
<IfModule mod_php5.c>
|
|
php_value short_open_tag 1
|
|
php_value magic_quotes_gpc 0
|
|
php_value magic_quotes_sybase 0
|
|
php_value magic_quotes_runtime 0
|
|
php_value register_globals 0
|
|
php_value session.auto_start 0
|
|
php_value upload_max_filesize 20M
|
|
php_value post_max_size 100M
|
|
</IfModule>
|
|
|
|
# Try to disable the parts of mod_security that interfere with the Flash uploader
|
|
#
|
|
<IfModule mod_security.c>
|
|
SecFilterEngine Off
|
|
SecFilterScanPOST Off
|
|
</IfModule>
|
|
|
|
# Improve performance by uncommenting this block. It tells the
|
|
# browser that your images don't change very often so it won't keep
|
|
# asking for them. If you get an error after uncommenting this, make
|
|
# sure you specify "AuthConfig Indexes" in your Apache config file.
|
|
#
|
|
# <IfModule mod_expires.c>
|
|
# ExpiresActive On
|
|
# # Cache all files for a month after access (A).
|
|
# ExpiresDefault A2678400
|
|
# # Do not cache dynamically generated pages.
|
|
# ExpiresByType text/html A1
|
|
# </IfModule>
|
|
|
|
# You can use the mod_rewrite Apache module to get rid of the
|
|
# "index.php" from your Gallery 3 urls. Uncomment the block below
|
|
# inside the <IfModule> ... </IfModule> lines and then edit the
|
|
# RewriteBase line to match your Gallery 3 URL.
|
|
#
|
|
# Here are some RewriteBase values:
|
|
# Gallery 3 URL RewriteBase line
|
|
# ============= ====================
|
|
# http://example.com/gallery3 RewriteBase /gallery3
|
|
# http://example.com/~bob/photos RewriteBase /~bob/photos
|
|
# http://gallery3.example.com/ RewriteBase /
|
|
#
|
|
# Then just use your Gallery 3 without the index.php in the url.
|
|
#
|
|
# NOTE: future upgrades of Gallery 3 will overwrite this file! If you
|
|
# want these changes to be persistent, talk to your system admin about
|
|
# putting this block into your Apache config files.
|
|
#
|
|
# <IfModule mod_rewrite.c>
|
|
# RewriteEngine On
|
|
# RewriteBase /
|
|
# RewriteCond %{REQUEST_FILENAME} !-f
|
|
# RewriteCond %{REQUEST_FILENAME} !-d
|
|
# RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
|
|
# RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
|
|
# </IfModule>
|