我有一个启用ssl的nginx服务器。 目前我已为所有目录启用了https。 如何启用ssl仅用于www.example.com/shop/*目录并禁用其他? 这里是我的conf文件: # Redirect everything to the main site.
server {
server_name *.example.com;
listen 80;
ssl
我现在有2点图像的位置和他们可能的格式(JPG,JPEG,PNG,GIF) i.domain.com/simage.jpg thumbnail
i.domain.com/image.jpg high quality
i.domain.com/o/image.jpg full resolution
有谁知道我怎么能强迫图像文件在/ o /下载而不是在网络浏览器中呈现? 这是我的conf文件:
当我将浏览器指向“rails_app.com”时,我可以在EC2实例上查看rails_app/public/index.html,但是当我删除rails_app/public/index .html我得到了nginx 403错误, directory index of "/home/www-data/rails_app/public/" is forbidden,
而不是能够看到我的Rail