well I have been looking to fix for this for a while, but nothing seems to be working. I have a server in AWS, an Ubuntu 14.04, I installed Apache 2.4.18 and laravel 5.0, after the configuration I saw the welcome page of laravel, but when I started coding the different routes I found a problem, I'm getting a 404 error, and I have tried almost everything.
The error says:
Not Found
The requested URL /buscar was not found on this server. Apache/2.4.18 (Ubuntu) Server at 52.32.204.237 Port 80
So the configuration file fos the apache2 in the file 000-default.conf
<VirtualHost *:80>
ServerName 52.32.204.237
DocumentRoot /var/www/html/viajes/public
<Directory /var/www/html/viajes/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
In the server name, I'm not going to put the domain until I but it, and that will take some time. And I have tried with out the domain name, making it the direction where laravel is, but no luck
And my .htaccess in my public folder is
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
I saw that you can make the re directs here, but it didn't work, actually it broke completely and I created a new project since I couldn't restore the Laravel to make it work again I have tried deleting some of the stuff there, have seen other posts here, but after so many tries and no results I thought maybe I'm doing something wrong or I'm missing something.
I have another server with the same information as here and it's working, I did that server like 1 year ago. So I have no idea how to fix this, hope with this all info you guys can help me.
Thanks in advantage.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire