Advertisement
Guest User

Untitled

a guest
May 7th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. # Set some reasonable defaults for PHP. Most of these cannot be set
  2. # inside the script itself. For hosts that don't have .htaccess
  3. # support but do support per-dir php.ini files, these settings are
  4. # mirrored in php.ini
  5. #
  6. <IfModule mod_php5.c>
  7. php_flag short_open_tag On
  8. php_flag magic_quotes_gpc Off
  9. php_flag magic_quotes_sybase Off
  10. php_flag magic_quotes_runtime Off
  11. php_flag register_globals Off
  12. php_flag session.auto_start Off
  13. php_flag suhosin.session.encrypt Off
  14. php_value upload_max_filesize 20M
  15. php_value post_max_size 100M
  16. </IfModule>
  17.  
  18. # Try to disable the parts of mod_security that interfere with the Flash uploader
  19. #
  20. <IfModule mod_security.c>
  21. SecFilterEngine Off
  22. SecFilterScanPOST Off
  23. </IfModule>
  24.  
  25. # Increase security by uncommenting this block. It keeps browsers
  26. # from seeing support files that they shouldn't have access to. We
  27. # comment this out because Apache2 requires some minor configuration
  28. # in order for you to use it. You must specify "AllowOverride Limit"
  29. # in your Apache2 config file before you uncomment this block or
  30. # you'll get an "Internal Server Error".
  31. #
  32. # <FilesMatch "(\.(class|fla|gitignore|inc|ini|sql|txt)|(README|LICENSE|.build_number))$">
  33. # Order deny,allow
  34. # Deny from all
  35. # </FilesMatch>
  36. # <FilesMatch "robots.txt">
  37. # Order allow,deny
  38. # Allow from all
  39. # </FilesMatch>
  40.  
  41. # Improve performance by uncommenting this block. It tells the
  42. # browser that your images don't change very often so it won't keep
  43. # asking for them. If you get an error after uncommenting this, make
  44. # sure you specify "AuthConfig Indexes" in your Apache config file.
  45. #
  46. # <IfModule mod_expires.c>
  47. # ExpiresActive On
  48. # # Cache all files for a month after access (A).
  49. # ExpiresDefault A2678400
  50. # # Do not cache dynamically generated pages.
  51. # ExpiresByType text/html A1
  52. # </IfModule>
  53.  
  54. # You can use the mod_rewrite Apache module to get rid of the
  55. # "index.php" from your Gallery 3 urls. Uncomment the block below
  56. # inside the <IfModule> ... </IfModule> lines and then edit the
  57. # RewriteBase line to match your Gallery 3 URL.
  58. #
  59. # Here are some RewriteBase values:
  60. # Gallery 3 URL RewriteBase line
  61. # ============= ====================
  62. # http://example.com/gallery3 RewriteBase /gallery3
  63. # http://example.com/~bob/photos RewriteBase /~bob/photos
  64. # http://gallery3.example.com/ RewriteBase /
  65. #
  66. # Then just use your Gallery 3 without the index.php in the url.
  67. #
  68. # NOTE: future upgrades of Gallery 3 will overwrite this file! If you
  69. # want these changes to be persistent, talk to your system admin about
  70. # putting this block into your Apache config files.
  71.  
  72. <IfModule mod_rewrite.c>
  73. Options +FollowSymLinks
  74. RewriteEngine On
  75. RewriteBase /imagehive/
  76. RewriteRule ^(.*)$ /images/index.php/g2/map?path=$1 [QSA,L,R=301]
  77. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement