Routes other than "/" are not working running nginx
Alright so I'm sure it's an nginx config issue, most likely. But the issue is I just installed Laravel on a fresh server and I can access the "/" route, but not the "/home" route. (Sidenote: If I can't post this here, I'm sorry. Just never felt the Stack Overflow community was very welcoming...)
This is my /etc/nginx/sites-available file contents
I'm using nginx + php5-fpm for my webserver. If you need more details than what is included here, please let me know and I can grab the config for them as well.
Thanks @bashy I honestly didn't think that was the issue. What causes that to happen? I had left it open for now, because I was going to have a lot of projects on this one server. I can certainly just attach them to other IP's, but I'd have liked to leave it open for now, since it's all for development.
Not sure where you got your config from but I normally set that myself (or at least check it).
Just think, root is where Nginx will serve the website from. So example.com/ would show files from the root directory.
If you want to host multiple, just add a new vhost (server block) and adjust the settings inside to reflect the new directory of your site. No need for additional IPs.
@Bashy Well I have my projects all within home. So I navigated to the public directory myself. (/home/Personal/Laravel/public) and other projects would be inside /Personal and /Work.
Not the best way to load a Laravel project, you'll find you'll get a lot of issues with links and paths.
You can keep one main open URL and ones for Laravel installs. I have my own PHP script that adds the file and paths into a config then loads it into Nginx and restarts the service. I route all subdomains to the IP and they instantly work.
not sure if I should start a new discussion or continue here. I got the same problem.
I am running nginx on Raspbian GNU/Linux 8.0 (jessie) (fresh install)
opening the site (local ip) results in a normal page. clicking any link give me a 404.
adding
I have made one application in laravel and used sql server in it.My sql server have 2 different databases with different username and password.I have used one of database in my application.....All tables are same in 2 different databases.I want to use that non use database in same appplication.......But there is a problem....
The error says "This page isn’t working
localhost is currently unable to handle this request. HTTP ERROR 500 "
I have just copied that runnable project and rename it...I have made change in .env files and database.php.....But it does not works.........Does any one have solution.......Plz help me out!!!!