watkib
watkib

Reputation: 347

Lightsail Laravel Bitnami setup - Default page loads instead of application

Set up Laravel on a Lightsail following the official guide here:https://docs.bitnami.com/aws/infrastructure/lamp/get-started/use-laravel/

But my server IP still returns the default You are now running LAMP page instead of my application.

Restarted apache as instructed after editing the hosts file to no avail

Here is my vhost file:

<VirtualHost 127.0.0.1:80 _default_:80>
        ServerAlias *
        DocumentRoot /opt/bitnami/projects/APPNAME/public
        <Directory "/opt/bitnami/projects/APPNAME/public">
          Options -Indexes +FollowSymLinks -MultiViews
          AllowOverride All
          Require all granted
        </Directory>   
</VirtualHost>

and my https-host file:

<VirtualHost 127.0.0.1:443 _default_:443>
    ServerAlias *
    DocumentRoot /opt/bitnami/projects/APPNAME/public
    SSLEngine on
    SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt"
    SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key"
    <Directory "/opt/bitnami/projects/APPNAME/public">
      Options -Indexes +FollowSymLinks -MultiViews
      AllowOverride All
      Require all granted
    </Directory>
  </VirtualHost>

Restarted apache like so:

sudo /opt/bitnami/ctlscript.sh restart apache

Upvotes: 0

Views: 525

Answers (0)

Related Questions