我正在尝试使用 Ubuntu 16.04、Apache 2 和 PHP7 在虚拟专用服务器 (OVH) 上安装 Drupal 8.1.10。我跟着这个教程:
https://www.howtoforge.com/tutorial/how-to-install-drupal_8-with-apache-and-ssl-on-ubuntu-15-10/
我被困在需求级别。Drupal 告诉我未启用干净的 url。我已将此添加到我的 apache2.conf 和我的 drupal.conf :
<Directory "/var/www/drupal">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
</Directory>
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
Run Code Online (Sandbox Code Playgroud)
仍然不起作用。几个小时以来,我一直在寻找问题所在,但找不到解决方案。
有什么帮助吗?谢谢