Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 无法添加AllowOverrideAll_Apache_Clean Urls - Fatal编程技术网

Apache 无法添加AllowOverrideAll

Apache 无法添加AllowOverrideAll,apache,clean-urls,Apache,Clean Urls,我读了这篇文章 我打开/etc/apache2/apache2.conf 在apache2.conf中找不到以下代码 所以我自己添加下面的代码 <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> 问题出在哪里?1)您把它放在了conf文件的什么地方?2) 服务器错误日志

我读了这篇文章

我打开/etc/apache2/apache2.conf 在apache2.conf中找不到以下代码 所以我自己添加下面的代码

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
问题出在哪里?

1)您把它放在了conf文件的什么地方?2) 服务器错误日志中有哪些错误?3) 您是否尝试过回滚更改?1)您将更改放在了conf文件的何处?2) 服务器错误日志中有哪些错误?3) 你试过把找零的钱退了吗?
Internal Server Errror
The server encountered an internal error or misconiguration and was unable to complete your request.
Please contact the server administrator, [no address given]  and inform them of the time the error occurred, and anything you might have done that may have cause the error.
More information about this error may be available in the server error log.