我有以下問題:在apache中使用mono與ssl
我想通過ssl訪問單聲道應用程序。我希望它沒有ssl就無法訪問。
我使用apache2.4和MOD-單server4.exe 3.0.0.0
目前,我有一個這樣的工作配置:
<VirtualHost *:80>
DocumentRoot /srv/www/htdocs/my-mono-app
#SSLEngine on
#SSLCertificateFile /path/to/key.pem
#SSLCertificateKeyFile /path/to/key.pem
MonoAutoApplication disabled
MonoServerPath my-mono-app "/usr/bin/mod-mono-server4"
MonoApplications my-mono-app "/my-mono-app:/srv/www/htdocs/my-mono-app"
<Directory /srv/www/htdocs/my-mono-app>
Require all granted
MonoSetServerAlias my-mono-app
SetHandler mono
</Directory>
</VirtualHost>
但只要我轉SSLEngine打開並將端口更改爲443,它不再工作。它只是說:Object not found!
如果我導航到地址。
它不記錄日誌中的任何錯誤。
你能幫我解決這個問題嗎?
PS:下面是完整的沒有工作的配置:
<VirtualHost *:443>
DocumentRoot /srv/www/htdocs/my-mono-app
SSLEngine on
SSLCertificateFile /path/to/key.pem
SSLCertificateKeyFile /path/to/key.pem
MonoAutoApplication disabled
MonoServerPath my-mono-app "/usr/bin/mod-mono-server4"
MonoApplications my-mono-app "/my-mono-app:/srv/www/htdocs/my-mono-app"
<Directory /srv/www/htdocs/my-mono-app>
Require all granted
MonoSetServerAlias my-mono-app
SetHandler mono
</Directory>
</VirtualHost>
什麼版本的Mono? – mikep
我更新了問題 –