我按照官方指南安装了书架,其内容为:https://www.howtoforge.com/how-to-install-bookstack-on-ubuntu-1804/
安装正常,没有错误,但我无法访问应在www.mydomain.com/bookstack上提供的最终配置,它没有找到404。一直试图找出什么问题是徒劳的。
我的bookstack.conf如下:
<VirtualHost *:80>
ServerAdmin bookstack@example.com
DocumentRoot /var/www/html/Bookstack
ServerName mydomain.com
ServerAlias www.mydomain.com
<Directory /var/www/bookstack/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# BookStack Configuration
Alias "/bookstack" "/var/www/bookstack/public"
<Directory "/var/www/bookstack/public">
Options FollowSymlinks
AllowOverride None
Require all granted
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</Directory>
<Directory "/var/www/bookstack">
AllowOverride None
Require all denied
</Directory>
# End BookStack Configuration
我确实更新了.env文件以反映子目录的更改。
这是一个SSL问题,如果是的话,我需要添加哪种配置?