apache2 服務無法啟動

apache2 服務無法啟動

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


原始答案,沒有可用的詳細資訊和測試,仍然可用這裡出於歷史目的。

相關內容