Skip to content

Instantly share code, notes, and snippets.

@eftakhairul
Last active December 19, 2016 18:53
Show Gist options
  • Save eftakhairul/072602d0153c2abcc22841baf23377b3 to your computer and use it in GitHub Desktop.
Save eftakhairul/072602d0153c2abcc22841baf23377b3 to your computer and use it in GitHub Desktop.
It will work for php and html both
NameVirtualHost *:443
<VirtualHost *:443>
ServerName www.example.com
DocumentRoot /var/www
DirectoryIndex index.php
#DirectoryIndex index.html index.htm
SSLEngine on
SSLCertificateFile /home/ubuntu/.crypto/www_example_com.crt
SSLCertificateKeyFile /home/ubuntu/.crypto/www_example_com.key
SSLCertificateChainFile /home/ubuntu/.crypto/DigiCertCA_or_other_ssl.crt
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment