Support the ongoing development of Laravel.io →
posted 7 years ago
Laravel

Hello,

I've created my first full Laravel tool. (Yiehaaa). I'm looking to host it somewhere for my customer as he wants to be able to use it from different PC's in his network.

Therefore I was thinking to put it on a Synology NAS (DS215j) which is already available.

I took following steps :

  1. Install WebStation
  2. Install PHP7
  3. Install Nginx with MariaDB10
  4. Imported all tables

My Webstation is up-and-running, telling Nginx is running with PHP7.

Under PHP settings, I enabled : mysqli, openssl and pdo_mysql.

In the end, I created a Virtual host PORT based (on port 85 for http and port 86 for https) and connected the main folder to "web/maintoolfolder/public".

As http back-end server Nginx is chosen, with PHP 7.0

When I now open following url http://nasname:85 , I get to see my index.php page without any problem ! So yeahhhhh...

But, whatever link I click which needs to open one of my routes, I always get the error message "404 page can not be found". Strange thing is that this 404 page is not even the own created Laravel 404 page.

What am I doing wrong ? Why can't I move between the different pages?

Thanks in advance for any help.

best regards,

Davy

Last updated 3 years ago.
0

add the following location to /etc/nginx/app.d/server.webstation-vhost.conf

location / { try_files $uri $uri/ /index.php?$query_string; }

and restart nginx by sudo nginx -s reload

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Davy mrbean14 Joined 23 Oct 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.