[英]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.