Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
<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
You can’t perform that action at this time.