I am trying to deploy laravel app on aws instance .both server & mysql are in the same db.db shows connected .When I hit aws public ip/controllername it gives internal error .In local environment it was working fine.
here is my apache virtual host conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/marine-cargo-module/public
<Directory /var/www/html/marine-cargo-module>
Options +FollowSymlinks
AllowOverride All
Require all granted
I also have .htaccess file on the laravelapp/public folder like below
Options -MultiViews -Indexes
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
I am trying to deploy laravel app on aws instance .both server & mysql are in the same db.db shows connected .When I hit aws public ip/controllername it gives internal error .In local environment it was working fine. here is my apache virtual host conf ServerAdmin webmaster@localhost DocumentRoot /var/www/html/marine-cargo-module/public <Directory /var/www/html/marine-cargo-module> Options +FollowSymlinks AllowOverride All Require all granted I also have .htaccess file on the laravelapp/public folder like below
kindly help me to get the application working