[英]Directory index forbidden by Options directive error only for ruby 1.8.7 application
[英]Directory index forbidden by Options directive in ruby on rails
我為使用Apache在CentOS linux環境中與瘦服務器一起運行的rails應用程序配置了SSL
。 當我嘗試使用"https"
打開站點時,出現Apache錯誤頁面,並且檢查了apache錯誤日志並收到以下錯誤消息
Directory index forbidden by Options directive.
我在/etc/httpd/conf.d/welcome.conf中做了一些更改,
"Options -Indexes"
"Options +Indexes"
到"Options +Indexes"
然后我在瀏覽器中獲取目錄結構。
請幫我解決問題
更新:
<VirtualHost *:80>
ServerName XXXX
ServerAlias www.XXXX.com
DocumentRoot XXXX
RewriteEngine On
<Proxy balancer://thinservers>
BalancerMember http://127.0.0.1:3000
</Proxy>
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://thinservers%{REQUEST_URI} [P,QSA,L]
ProxyPass / balancer://thinservers/
ProxyPassReverse / balancer://thinservers/
ProxyPreserveHost on
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# Custom log file locations
ErrorLog XXXX
CustomLog XXXX
隨附的Apache配置顯示了HTTP虛擬主機在端口80 <VirtualHost *:80>
上亮起的狀態。
HTTPS連接到在端口443上定義的其他虛擬主機,您將需要修改此虛擬主機的配置,以更改網站的HTTPS部分的行為。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.