Skip to content

Instantly share code, notes, and snippets.

@raknjak
Last active May 24, 2019 10:05
Show Gist options
  • Save raknjak/5f45084878fe1863cbf65b353f2106c3 to your computer and use it in GitHub Desktop.
Save raknjak/5f45084878fe1863cbf65b353f2106c3 to your computer and use it in GitHub Desktop.
WAMP project setup on Windows
Download and install http://www.wampserver.com/en/
Optionally install upgrades from http://wampserver.aviatechno.net/
Enable Apache SSL: https://articlebin.michaelmilette.com/how-to-add-ssl-https-to-wampserver/
Add a junction to your projects folder: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
$ mklink /J Link Target
This means we don't have to put our files in c:\wamp64\www.
Edit Wamp config file: C:\wamp64\bin\apache\apache2.4.37\conf\extra\httpd-ssl.conf
Create a virtualhost at end of file (in this case pointing to the public folder of a Laravel setup) e.g.:
<VirtualHost *:443>
DocumentRoot "c:/wamp64/www/Projects/MYPROJECTNAME/public"
ServerName MYPROJECTNAME.local
ServerAdmin xxx@xxx.com
<Directory "c:/wamp64/www/MYPROJECTNAME/public">
AllowOverride All
Require local
</Directory>
SSLEngine on
SSLCertificateFile "c:/wamp64/bin/apache/apache2.4.37/conf/key/certificate.crt"
SSLCertificateKeyFile "c:/wamp64/bin/apache/apache2.4.37/conf/key/private.key"
</VirtualHost>
Restart Wamp services
Add a hosts entry pointing to your custom domain in C:\Windows\System32\drivers\etc\hosts: MYPROJECTNAME.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment