Multiple virtualhost in wamp 3 with SSL
Posted by: Thunder.Cuba (200.55.166.---)
Date: November 29, 2018 04:38PM

Hello Community

Thanks in advance for all the help you can give me.

Look, thanks to several tutorials and the help of this forum, I was able to install an SSL certificate for my website. I had to make several modifications to several files to achieve it. In the httpd-ssl.conf file I define the SSL certificates and the main virtual host:
<VirtualHost _default_: 443>

# General setup for the virtual host
DocumentRoot "d: / wamp64 / www / MYSITEFOLDER"
ServerName www.MYDOMAIN.COM:443
ErrorLog "d: /wamp64/bin/apache/apache2.4.33/logs/error.log"
TransferLog "d: /wamp64/bin/apache/apache2.4.33/logs/access.log"

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

Everything works fine, however in my httpd_vhost.conf file I notice that the virtual host created is on port 80, if I change it to 443 the apache does not start, if I leave it on port 80, the apache starts and my site works perfectly in https protocol.


<VirtualHost *: 80>
DocumentRoot "d: / wamp64 / www / MYSITEFOLDER"
ServerAlias ​​
<Directory "d: / wamp64 / www / mysitefolder">
Options Indexes FollowSymLinks
AllowOverride All
Order Deny, Allow
Allow from all
</ Directory>
</ VirtualHost>

Why does this happen?

The other help I need, if I made another project using the same wamp, which is in the www folder, and I would like it to open by the https protocol just like my main site. How I must configure those files to make it accesible? I have tried to modify the httpd_vhost.conf file but without results. I hope you can help me.

Thank you

Options: ReplyQuote
Re: Multiple virtualhost in wamp 3 with SSL
Posted by: RiggsFolly (Moderator)
Date: November 29, 2018 05:07PM


WAMPSevrer does not create the httpd-ssl.conf file for you. Thats all down to you and an extensive look at the Apache manual.


Syntax Error
    ServerName www.MYDOMAIN.COM:443

If you look in the apache error log, or in the Event Viewer (for messaged from Apache) you will probably see this mentioned

Also wrong
ErrorLog "d: /wamp64/bin/apache/apache2.4.33/logs/error.log"
TransferLog "d: /wamp64/bin/apache/apache2.4.33/logs/access.log"

Error logs go in the `/wamp64/logs` folder normally

(Windows 10 Pro 64bit) (Wampserver 3.1.7 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Edited 2 time(s). Last edit at 11/29/2018 05:10PM by RiggsFolly.

Options: ReplyQuote

Sorry, only registered users may post in this forum.