By fabrifeno
Hello guys, i got a problem after i finish to set up LAMP and installed my laravel 4 application. Everything seem went well, when i go on my ip address url, it show me the first page of my application correctly, but all the rest of the page throw me an 404 error The requested URL was not found on this server.
So I added to my httpd.conf (under the virtual host of my project) -
AllowOverride All Order allow,deny
like so: <VirtualHost *:80> ServerName MY-IP-SERVER DocumentRoot /var/www/html/nextmatch/public_html/public/
<Directory /var/www/html/nextmatch/public_html/public/>
AllowOverride all
Order allow,deny
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
And now when i try to navigate instead the 404 error i got Forbidden
You don’t have permission to access this server.
I set up with chmod 775 -R path/laravel/ and the folder storage with 777 but still i got the same error any suggest please? I cannot figure out to this problem i’m getting crazy! Thank you for any help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
(Since the tags were stripped out, I posted your virtualhost <a href=“https://p.kk7.me/rimagavido.apache”>here</a> for future reference.) <br> <br>Is the rewrite module enabled? See <a href=“https://www.digitalocean.com/community/questions/how-to-active-sudo-a2enmod-rewrite-for-centos”>https://www.digitalocean.com/community/questions/how-to-active-sudo-a2enmod-rewrite-for-centos</a>.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.