0

SSL用のApacheをセットアップしました。閲覧できますhttps://localhost

に変更https://localhoszhttps://www.test.comたい

私の httpd-ssl.conf:

SSLSessionCache "shmcb:C:/wamp/bin/apache/apache2.4.2/logsssl_scache(512000)"
SSLEngine on  
DocumentRoot "C:/wamp/www/TeamPass" 
ServerName localhos:443 
ErrorLog "C:/wamp/logs/mysecuresite_error_log" 
TransferLog "C:/wamp/logs/mysecuresite_access_log"
SSLCertificateFile "C:/wamp/OpenSSL/certs/webserver.cer" 
SSLCertificateKeyFile "C:/wamp/OpenSSL/certs/private.key"  

CustomLog "C:/wamp/logs/ssl_request_log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

仮想ホストでいくつかの構成を試みたが、変更が行われた後に wamp が起動しないため、apache が起動するように構成ファイルを変更するにはどうすればよいですか。これはテストサーバーなので、DNS サーバーはありませんが、ホスト ファイルを編集しています。

test.com:443 をリッスンするには C:/wamp/www/TeamPass が必要です。サーバー名をこの URL に変更できますが、これが正しい方法かどうかはわかりません。url を使用するにはどうすればよいですか? https://pass.test.derewrite モジュールを使用する必要がありますか?

4

2 に答える 2

0

ホスト名を www.test.com に変更します

edit or run the file hostname and the file hosts

sudo gksu gedit /etc/hostname  and add www.test.com

sudo gksu gedit /etc/hosts and add the line 127.0.0.1 www.test.com localhost 

in the virtualhoste use www.test.com instead of localhost.
于 2013-09-19T14:32:07.027 に答える