Yii 模块的 https 问题
我在 Yii 中启动并运行了一个模块。我可以毫无问题地访问 http://url/module
上的模块。但是,我无法建立安全的工作连接。
当我尝试使用 https (https://url
) 连接时,主站点工作正常。当我尝试访问模块中的任何内容时,
Not Found
The requested URL /module was not found on this server.
Apache/2.2.17 (Ubuntu) Server at url Port 443
我无法在此处或 Google 上找到任何搜索线索。任何帮助都会很棒。
已编辑 根据 ldg 的建议,我更新了 ssl 配置文件。 Ubuntu 11.04 的详细信息如下。
/etc/apache2/sites-available/default-ssl
更改
...
< Directory /var/www/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
< /Directory >
...
为
...
< Directory /var/www/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
< /Directory >
...
I have a module up and running in Yii. I can access the module at http://url/module
without any problems. I can not get a secure connection to work, however.
The primary site works fine when I attempt to connect with https (https://url
). When I attempt to access anything within my module I get
Not Found
The requested URL /module was not found on this server.
Apache/2.2.17 (Ubuntu) Server at url Port 443
I haven't been able to find any leads searching here or on Google. Any help would be great.
EDITED
Based on ldg's suggestion I updated the ssl config file. Details for Ubuntu 11.04 follow.
/etc/apache2/sites-available/default-ssl
Change
...
< Directory /var/www/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
< /Directory >
...
To
...
< Directory /var/www/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
< /Directory >
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 Apache 的 ssl 配置文件并查看它是否有“AllowOverride”条目。如果它设置为“无”,请更改为“全部”(或者将其设置为非 ssl)。
您的主站点上的所有 URL 都可以使用 ssl 吗?
Check the ssl config file for Apache and look to see if it has an entry for "AllowOverride". If it's set to "None", change to "All" (or however you have it set for non-ssl).
Do all the URLs work on your primary site in ssl?