Magento https给出了404

时间:2012-02-28 10:21:51

标签: magento https

我只是在我的商店安装和配置SSL。通常我可以获得类似http://www.mydomain.com/product-name-here.html的产品详细信息。

由于启用了https,我应该能够获得https://www.mydomain.com/product-name-here.html。但这种情况并没有发生。

但是如果将test.html放在root中并尝试通过http://www.mydomain.com/test.htmlhttps://www.mydomain.com/test.html访问它。它有效。

问题在于只重写网址。可能是什么原因。

由于

2 个答案:

答案 0 :(得分:1)

还有其他问题,我刚刚从Apache vhost config

中取出了以下内容
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /path/to/web-root/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

有效

答案 1 :(得分:0)

我的apache配置中缺少虚拟主机配置。

<强> /etc/apache2/sites-available/default-ssl.conf

内容:

<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/magento
    ServerName <my-domain>.com
    <Directory "/path/to/root-of-web-app">
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLProtocol -all +TLSv1 +SSLv3
    SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM

    SSLCertificateKeyFile /home/server/Mohit/ssl_certs/server.key

            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>