我试图在一个虚拟私有服务器(OVH)上安装Drupal8.1.10,其中包含Ubuntu16.04、Apache2和PHP7。我遵循了本教程:
https://www.howtoforge.com/tutorial/how-to-install-drupal_8-apache和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>
还是不起作用。我已经找了好几个小时了,但我找不到解决办法。
有什么帮助吗?谢谢
发布于 2017-04-22 10:15:22
使用下面的过程来启用Ubuntu 16.04的清洁url:
/etc/apache2/sites-available/000-default.conf
Allowoverride service apache2 restart
这是为我工作..。
https://askubuntu.com/questions/833040
复制相似问题