簡體   English   中英

Magento檢出頁面-無需SSL即可正常運行,但HTTPS返回403您無權訪問此服務器上的/index.php

[英]Magento Check-out page - fine without SSL but HTTPS returns 403 You don't have permission to access /index.php on this server

我的一家magento商店(准備投入生產)一直很好,直到今天我將SSL添加到apache服務器。 SSL安裝正常,地址欄中顯示掛鎖。

問題是單擊\\\\“ checkout \\\\”后,服務器轉到https並返回(我已重寫)

https://www.thedomain.com/checkout/onepage/


被禁止

您無權訪問此服務器上的/index.php。

Apache / 2.2.22(Ubuntu)服務器,位於www .....端口443

沒有SSL連接的情況下,一頁結帳工作正常

我的ssl配置文件(存儲SSL密鑰/證書位置)如下:

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory \\\"/usr/lib/cgi-bin\\\">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

....
....

<FilesMatch \\\"\\\\.(cgi|shtml|phtml|php)$\\\">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

BrowserMatch \\\"MSIE [2-6]\\\” \\\\
nokeepalive ssl-unclean-shutdown \\\\
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch \\\"MSIE [17-9]\\\” ssl-unclean-shutdown

</VirtualHost>
</IfModule>

沒有任何內容添加到apache錯誤日志中。

由於在沒有SSL的情況下效果很好,因此問題一定是由SSL配置引起的,我已經將SSL虛擬主機設置與非SSL虛擬主機進行了比較

有人提供幫助嗎? 這是這家商店上線之前的最后一步……

詳細程度上升后的error_log顯示:

SSLVerify設置為“ require”且特定於VirtualHost的CA證書列表的非默認虛擬主機僅對支持TLS服務器名稱指示(SNI)的客戶端可用

在httpd.conf中注釋掉SSLVerify require可以解決此問題。

嘗試使用准確的網址(例如https://www.yourdomain.com)從后端設置安全的基本網址

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM