![apache2 服務無法啟動](https://rvso.com/image/898916/apache2%20%E6%9C%8D%E5%8B%99%E7%84%A1%E6%B3%95%E5%95%9F%E5%8B%95.png)
Apache2 無法重新啟動,因為控制進程退出並出現錯誤代碼。
<VirtualHost *:80>
serveradmin Rabie@Laassal
docummenRoot "/var/www/html/nextcloud/"
serverName 192.168.159.132
serverAlias ubuntu
<Directory "/var/www/html/nextcloud/">
option +followsymLinks <= 7th line
Allowoverride All
...
</directory>
。 。 。
答案1
在 LXD 容器中進行一些測試後,現在您提供了盡可能接近有用的配置,我發現“Option”無效,但“Options”有效。
這是一個例子:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory />
Options +FollowSymLinks
</Directory>
</VirtualHost>
所以,Options
, 不是Option
。
原始答案,沒有可用的詳細資訊和測試,仍然可用這裡出於歷史目的。