Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active January 26, 2020 07:02
Show Gist options
  • Save pandanote-info/dc5c7ca9fab2487b73c1866266deb57e to your computer and use it in GitHub Desktop.
Save pandanote-info/dc5c7ca9fab2487b73c1866266deb57e to your computer and use it in GitHub Desktop.
mediawiki.confの設定例。ローカル以外からのアクセスを制限しています。
# This is a sample configuration for a wiki instance located under
# /var/www/wiki and exposed as http://thishost/wiki. Please read
# /usr/share/doc/mediawiki/README.RPM on whether to use this
# instance or create copies of it.
# Alias /wiki/skins /usr/share/mediawiki/skins
# Alias /wiki /var/www/wiki
# If your DocumentRoot points into the wiki itself all that is needed is
Alias /pandanote/skins /usr/share/mediawiki/skins
Alias /pandanote /export/pandanote
SetEnv MW_INSTALL_PATH /export/pandanote
<Location "/pandanote">
DirectoryIndex index.php
AllowOverride Options
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment