0
我想在我的本地主機上使用Apache和Phusion乘客配置SSL。我正在使用虛擬主機。ssl本地主機使用Apache和乘客
我在網站可用下面的配置/ MYAPP
VirtualHost *:80
ServerName myapp
DocumentRoot /home/madhu/ror/myapp/public
RailsEnv development
Directory /home/madhu/ror/myapp/public
AllowOverride all
Options -MultiViews
Order allow,deny
allow from all
Directory
VirtualHost
VirtualHost *:443
ServerName myapp
DocumentRoot /home/madhu/ror/myapp/public
ProxyPass/http://myapp/
ProxyPassReverse/http://myapp/
ProxyPreserveHost On
RequestHeader set X_FORWARDED_PROTO 'https'
Directory /home/madhu/ror/myapp/public
AllowOverride all
Options -MultiViews
Order allow,deny
allow from all
Directory
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/ssl/certs/Thawte_Server_CA.pem
SSLProxyMachineCertificateFile /etc/ssl/certs/Thawte_Server_CA.pem
VirtualHost
的啓用SSL,一切工作正常。但是,當我轉到網址https://myapp/login時,它顯示「在此服務器上找不到請求的URL /登錄名」。當我查看apache日誌時,發現請求將/ var/www/login替換爲/ home/madhu/ror/myapp/public。這是錯誤日誌
[client 127.0.0.1] File does not exist: /var/www/login
有什麼我失蹤?請幫忙
謝謝。