- -- - - - - - - - - - - - - - - - - - TrB.jpg Margaret.png Jkb.jpg JoeD.jpg Edbatchelor.jpg JimB.png DAD-TINT.JPG C03515.jpg

Difference between revisions of "/etc/mediawiki/apache.conf"

From Batchelor-s
Jump to navigationJump to search
Line 15: Line 15:
 
*</Directory>
 
*</Directory>
  
*# some directories must be protected
+
* # some directories must be protected
 
*<Directory /var/lib/mediawiki/config>
 
*<Directory /var/lib/mediawiki/config>
 
*        Options -FollowSymLinks
 
*        Options -FollowSymLinks

Revision as of 22:21, 3 January 2016

  • # Uncomment this to add an alias.
  • # This does not work properly with virtual hosts..
  • Alias /mediawiki /var/lib/mediawiki
  • <Directory /var/lib/mediawiki/>
  • Options +FollowSymLinks
  • AllowOverride All
  • <IfVersion >= 2.3>
  • Require all granted
  • </IfVersion>
  • <IfVersion < 2.3>
  • order allow,deny
  • allow from all
  • </IfVersion>
  • </Directory>
  • # some directories must be protected
  • <Directory /var/lib/mediawiki/config>
  • Options -FollowSymLinks
  • AllowOverride None
  • <IfModule mod_php5.c>
  • php_admin_flag engine off
  • </IfModule>
  • </Directory>
  • #<Directory /var/lib/mediawiki/images>
  • <Directory /var/lib/mediawiki/images>
  • Options -FollowSymLinks
  • AllowOverride None
  • <IfModule mod_php5.c>
  • php_admin_flag engine off
  • </IfModule>
  • </Directory>
  • <Directory /var/lib/mediawiki/upload>
  • Options -FollowSymLinks
  • AllowOverride None
  • <IfModule mod_php5.c>
  • php_admin_flag engine off
  • </IfModule>
  • </Directory>