我从Debian软件包仓库安装了最新的mantis .deb软件包: mantis_1.1.6+dfsg-2_all.deb
我如何访问螳螂申请?
这个服务器已经用于维基,所以当我尝试
http://wiki/mantis/
出现一个空的wiki页面。
以下是站点可用文件夹中的wikiconfiguration文件。 我猜测,我需要在那里放置类似于RewriteCond RewriteCond %{REQUEST_URI} !^/mantis
的东西:
<VirtualHost *> #ServerName dekiwiki ErrorLog /var/log/apache2/error-dekiwiki.log CustomLog /var/log/apache2/access-dekiwiki.log common DocumentRoot "/var/www/deki-hayes" RewriteEngine On RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/$ /index.php?title= [L,QSA,NE] RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|deki)/ RewriteCond %{REQUEST_URI} !^/index\.php RewriteCond %{REQUEST_URI} !^/favicon\.ico$ RewriteCond %{REQUEST_URI} !^/robots\.txt$ RewriteCond %{REQUEST_URI} !^/error/(.*)\.var$ RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE] # Bug: 5252 https rewrite/proxy rules RewriteCond %{HTTPS} =on RewriteCond %{REQUEST_URI} ^/@api/ RewriteCond %{QUERY_STRING} !^(.*)dream.in.scheme= [NC] RewriteRule ^/@api/(.*)$ http://localhost:8081/$1?dream.in.scheme=https [QSA,P,L] RewriteCond %{HTTPS} =on RewriteCond %{REQUEST_URI} ^/@api/ RewriteCond %{QUERY_STRING} ^(.*)dream.in.scheme= [NC] RewriteRule ^/@api/(.*)$ http://localhost:8081/$1 [QSA,P,L] # End Bug: 5252 # deki-api uses encoded slashes in query parameters so AllowEncodedSlash es must be On AllowEncodedSlashes On # FIXME: # Some php flags we need. These are only needed until all # the short php open tags are changed to long in the source code. php_flag short_open_tag on # Allow short open tags and turn off E_NOTICE messages php_value error_reporting "E_ALL & ~E_NOTICE" # Setting php memory parameters # php_value memory_limit "128M" # php_value post_max_size "64M" # php_value upload_max_filesize "64M" # mod_proxy rules ProxyPass /@api http://localhost:8081 retry=1 ProxyPassReverse /@api http://localhost:8081 SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 <Proxy *> AddDefaultCharset off Order deny,allow Deny from all Allow from all </Proxy> </VirtualHost> <Directory "/var/www/deki-hayes"> # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiVi ews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.2/mod/core.html#options # for more information. Options None # AllowOverride controls what directives may be placed in .htaccess file s. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit AllowOverride All # Controls who can get stuff from this server. Order allow,deny Allow from all </Directory> # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.html index.php </IfModule>
维基的网站有一个常见问题,解释我错过了什么。 我只需要在其中一个RewriteCond
行中包含mantis文件夹,就可以从wiki中排除该文件夹。
我如何…在VM上安装PHP应用程序?
aptitude安装mantis
cat /etc/apache2/conf.d/mantis
那么你是否已经破解了你的apacheconfiguration而不是包含/etc/apache2/conf.d文件? 我怀疑你需要一个独立的螳螂虚拟服务器,因为Wiki正在拦截你期望得到的螳螂系统。
你在/etc/apache2/apache2.conf中有这两行吗?
#包含通用的语句片断
包括/etc/apache2/conf.d/
#包含虚拟主机configuration:
包括/ etc / apache2 / sites-enabled /