apache - laravel not working on https (https ssl provided by amazon) centos 6.8 Amazon web services -


i have ec2 instance , running on centos 6.8. after installed lamp , laravel using cli. i edited httpd config , added script.

<virtualhost *:80>    #servername laravel.example.com     documentroot /var/www/html/application/public    <directory /var/www/html/application>          allowoverride  </directory> 

<virtualhost *:443>        #servername laravel.example.com         documentroot /var/www/html/application/public        <directory /var/www/html/application>              allowoverride      </directory> </virtualhost> 

i tried running web app using http , https(ssl certificate using amazon certificate manager).

after running on http. working. on https, application not working.

edit: (i used ssl certificate provided amazon web services , correct me if i'm wrong, put in on route 53 , amazon didn't provide me certificates.) tried using vhost port 443 same config. after restart httpd config. both http , https did not work)

the virtualhost config you've shared port 80 configures site work on http. need configure apache listen on port 443 https protocol , define ssl keys in file. want this:-

<virtualhost *:443>         documentroot /var/www/html/application/public          sslengine on         sslcertificatefile /etc/httpd/ssl/example.crt         sslcertificatekeyfile /etc/httpd/ssl/example.key         sslcertificatechainfile /etc/httpd/ssl/example.bundle </virtualhost> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -