2
I’m not putting my system into production.
I created a Virtualhost in the file http.conf
Apache with the following configuration:
<VirtualHost *:80>
DocumentRoot /var/www/html/dna/public
ServerName www.dna.com
<Directory "/var/www/html/dna/public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
When I access the address www.dna.com the home page appears normally, but when I try to login appears erro 500
:
The archive .htaccess
of the briefcase /public
of the project:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
What directory is this . htaccess in? Are you sure the path is right?
– Miguel
That code belongs to no one .
htaccess
. Is in thehttpd
.apache conf– Amanda Lima
Ha ok, when I put an Laravel in production I do a . htaccess in the root folder
– Miguel
I edited the question and put . htaccess from the public folder. If it’s another file you make, could you give me an example?
– Amanda Lima
I’ll put in the answer to get better formatted, if it doesn’t help I withdraw
– Miguel
And if you access www.dna.com/public?
– Miguel
It says the public folder doesn’t exist
– Amanda Lima
Set up the file
hosts
?– Wallace Maxters
yes, the problem happens from the system homepage forward
– Amanda Lima