2012-01-31 8 views
4

ローカルのdevolopment wampサーバー(Windows 7)でSSLを稼働させようとしているのに、ちょうど4時間を費やしました。SSLを使用するときにWAMPサーバーで403の禁止エラーが発生する

すべての設定が完了しているようですが、サーバーは何のエラーもなく再起動します。

解決できないような唯一の問題は、HTTPS(SSL 443)を使用して自分のサイトにアクセスしようとすると禁止されている403です。それだけではないの443 エラーログには、次の

[error] [client 127.0.0.1] client denied by server configuration: F:/My Webs/freedate/public_html/ 

マイhttp.confファイルには、次のバーチャルホストが

<VirtualHost *:80> 
    ServerName www.freedate.local 
    ServerAlias freedate.local *.freedate.local 
    DocumentRoot "F:\My Webs\freedate\public_html" 

    <Directory "F:\My Webs\freedate\public_html"> 
     allow from all 
     order allow,deny 
     # Enables .htaccess files for this site 
     AllowOverride All 
    </Directory> 
    DirectoryIndex index.html index.php 
</VirtualHost> 

そして、私のhttpd-ssl.confのを追加しました示し、ポート80で正常に動作します以下のバーチャルホストは、誰もが私が間違っているのものを見つけることができた場合は、私が最も感謝し、多くのおかげだろう

<VirtualHost *:443> 
    SSLEngine on 
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL 
    SSLCertificateFile "C:/wamp/bin/apache/Apache2.2.21/conf/ssl/server.crt" 
    SSLCertificateKeyFile "C:/wamp/bin/apache/Apache2.2.21/conf/ssl/server.key" 

    ServerName www.freedate.local 
    ServerAlias freedate.local *.freedate.local 
    DocumentRoot "F:\My Webs\freedate\public_html" 

    <Directory "F:\My Webs\freedate\public_html"> 
     Options -Indexes FollowSymLinks 
     AllowOverride All 
     Order allow,deny 
     Allow from all 
    </Directory> 
    DirectoryIndex index.html index.php 
</VirtualHost> 

を追加しました。

種類が ギャリーについて

答えて

1

、これは非常に古い質問ですが、私は今日、同じ問題に直面し、私は将来的にこの問題に直面して人のためにここに解決策を与えています。

このソリューションは、SSLなしですべてが機能している場合に機能します。次のコードを挿入し、これらの行の後

<Directory "c:/Apache24/cgi-bin"> 
    SSLOptions +StdEnvVars 
</Directory> 

:、あなたはこのような何かを見つけるでしょう<VirtualHost _default_:443></VirtualHost>コードブロックの間、httpd-ssl.confファイルでhttps://stackoverflow.com/a/14671738/2407971

:あなたはここにSSLなしで働いてヘルプを見つけることができます。

<Directory "c:/wamp64/www/"> 
    #Options FollowSymLinks 
    Options Indexes FollowSymLinks Includes ExecCGI 
    AllowOverride All 
    Require all granted 
</Directory> 
<Directory "c:/wamp64/www/yoursite/"> 
    #Options FollowSymLinks 
    Options Indexes FollowSymLinks Includes ExecCGI 
    AllowOverride All 
    Require all granted 
</Directory> 

これは、基本的に、wwwフォルダとユーザーサイトのルートディレクトリにSSLでアクセスできるようにします。

サーバーを再起動し、サイトをテストします。

希望します。

関連する問題