Mediawiki ... / wiki / Special:版本和其他页面重定向

时间:2015-08-26 18:56:06

标签: mediawiki

好的,超级新手第一次从新的设置角度搞乱Mediawiki。我已经安装了1.25.2版本,现在正在运行相当准系统。我试图访问我的本地安装的... / wiki / Special:Version页面以获取详细信息并通过GUI查看扩展列表。

我的wiki服务很好。我可以访问mediawiki本身,我试图访问的是" admin"通常通过... / wiki / ...提供类型的页面:mediawiki.org/wiki/Special:Version我可以访问我的localhost:port /就好并点击媒体维基。当我尝试命中localhost:port / wiki / ...这就是将我重定向回维基的索引页面

每当我尝试点击此页面(或..​​. / wiki / ..下的任何其他页面)时,它会将我重定向回主页。

我的用户有sysops和官僚角色。

我在这里完全遗漏了什么吗?

以下是我的Apache2.conf的详细信息:

# see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-

dir/apache2.conf

Mutex file:/var/lock/apache2 default
PidFile /var/run/apache2/apache2.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User www-data
Group www-data
HostnameLookups Off
ErrorLog /proc/self/fd/2
LogLevel warn

IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# ports.conf
Listen 80
<IfModule ssl_module>
    Listen 443
</IfModule>
<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

<Directory /var/www/>
    AllowOverride All
    Require all granted
</Directory>

DocumentRoot /var/www/html

AccessFileName .htaccess
<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /proc/self/fd/1 combined

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

# Multiple DirectoryIndex directives within the same context will add
# to the list of resources to look for rather than replace
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
DirectoryIndex disabled
DirectoryIndex index.php index.html

IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Include /etc/apache2/mediawiki.conf

这是mediawiki.conf文件:

<Directory /var/www/html>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</Directory>
<Directory /var/www/html/images>
  # Ignore .htaccess files
  AllowOverride None

  # Serve HTML as plaintext, don't execute SHTML
  AddType text/plain .html .htm .shtml .php

  # Don't run arbitrary PHP code.
  php_admin_flag engine off
</Directory>

1 个答案:

答案 0 :(得分:1)

好的,这一切都在我身上。我试图通过localhost访问这些页面:port / wiki / Special:当我需要实际命中localhost时的版本:port / index.php / Special:Version。

所以是的,狮子座是正确的,谢谢。