Question: i have setup apache for ssl.
i can browse `https://localhost`

I would like to change `https://localhosz` to `https://www.test.com` or whatever

My 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"

```

How do I have to change my config file so that apache will start because i tried some configuration with virtualhost but wamp wouldn't start after changes has been made.
This is a testserver so i have no DNS Server but have edit my host file.

I need C:/wamp/www/TeamPass to listen to test.com:443, i could change servername to this url but i'm not sure if this is the right way.
What would i have to do to use url `https://pass.test.de`, do i need to use rewrite module

Answer: 
For MS Windows, you can modify the file **httpd-vhosts.conf** located on the folders **conf/extra/** inside Apache's instalation path, to include the next configuration:

```
Listen 443
NameVirtualHost 127.0.0.1:443
<VirtualHost 127.0.0.1:443>
  ServerName www.test.com
  DocumentRoot "C:\wamp\www\TeamPass"
  <Directory "C:\wamp\www\TeamPass">
    AllowOverride All
    Allow from All
  </Directory>
  ErrorLog "C:\wamp\logs\mysecuresite_error_log"
  CustomLog "C:\wamp\logs\ssl_request_log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  SSLEngine on
  SSLCertificateFile "C:\wamp\OpenSSL\certs\webserver.cer" 
  SSLCertificateKeyFile "C:\wamp\OpenSSL\certs\private.key" 
</VirtualHost>

```

Then, in the file **C:\WINDOWS\system32\drivers\etc\hosts** add this line at the end:

```
127.0.0.1   www.test.com

```
change your hostname to 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.

```