httpd.conf配置和WordPress的.htaccess问题

时间:2014-09-17 11:23:47

标签: wordpress apache .htaccess centos

我遇到了Wordpress Multisite的问题。我已经更改了托管服务器(专用服务器):主站点工作正常,但另一个站点(在子文件夹配置中)给出了404错误。在Internet文档中搜索,我已经读过在httpd.conf中更改AllowOverride指令是必要的,但是当我将其从None更改为All(然后重新启动Apache服务器)时,整个站点(主e子文件夹)会返回一个内部服务器错误。我尝试了许多不同的配置“主”目录和虚拟主机目录,但没有成功。

我在这里写了http.con

的代码
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# 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 Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/html/www.domain.com
<Directory /var/www/html/www.domain.com>
#AllowOverride All
#AllowOverride Fileinfo Options
</Directory>
</VirtualHost>

我能做些什么让它有效?

PS。此外,如果我只将AllowOverride从None更改为All(并且没有其他更改),则页面会给出内部服务器错误。

0 个答案:

没有答案