[英]USVN virtualhost broken afer migration from apache 2.2 to apache 2.4
我在虛擬主機上的https上有一個USVN站點。 這在Ubuntu的apache 2.2上運行良好。
自從執行系統升級以來,我最終得到了apache 2.4和一個無效的USVN。 我試圖重新配置主機但沒有成功......
我最終得到了這個錯誤:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
服務器錯誤日志中可能提供了有關此錯誤的更多信息。
Apache / 2.4.18(Ubuntu)服務器位於localhost端口443
這是我對該網站的配置:
usvn.conf
<VirtualHost *:443>
DocumentRoot /var/www/usvn/public
SSLEngine On
SSLCertificateFile /etc/ssl/private/localhost.pem
ServerName svn
#alias /usvn /var/www/usvn/public
#alias / /var/www/usvn/public
<Directory "/var/www/usvn/public">
Options +SymLinksIfOwnerMatch
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Location /svn/>
ErrorDocument 404 default
DAV svn
Require valid-user
SVNParentPath /var/www/usvn/files/svn
SVNListParentPath off
AuthType Basic
AuthName "USVN"
AuthUserFile /var/www/usvn/files/htpasswd
AuthzSVNAccessFile /var/www/usvn/files/authz
</Location>
有人提示如何讓它再次起作用嗎?
謝謝
請參閱安裝文檔
對於Apache 2.4,您必須使用
<Directory "/path/to/usvn/public">
Options +SymLinksIfOwnerMatch
AllowOverride All
## For Apache HTTP 2.4
Require all granted
</Directory>
對於一些原因, access_compat
無法支持USVN配置。 需要將指令遷移到2.4語法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.