lando / symfony

The Official Symfony Lando Plugin
https://docs.lando.dev/symfony/
GNU General Public License v3.0
6 stars 2 forks source link

Getting 404 page on sub pages #18

Open wp-coin opened 1 year ago

wp-coin commented 1 year ago

home page loads fine but not sub pages example: http://localhost:32807/browse/api

lando.yml

name: symfony
recipe: symfony
config:
  webroot: public
  php: 8.1

version: symfony 6.2 windows wsl2

wp-coin commented 1 year ago

this problem does not arise when using built in php server php -S 127.0.0.1:8888

something must be up with Apache and enginx

wp-coin commented 1 year ago

this has something to do with the nginx and Apache configuration file

https://symfony.com/doc/current/setup/web_server_configuration.html#nginx

I can add a htaccess for Apache but for nginx I'll have to add or modify the server config files, do you know where they are located?

millnut commented 1 year ago

Hi @wp-coin this should work with nginx, I've tested this with the symfony recipe with nginx config via: nginx and subpages do not 4040, can you confirm nginx works?

@pirog is there a way to do per recipe apache config the same as can be done with nginx config?

thewunder commented 3 weeks ago

I can confirm that via: nginx works, and that apache does not work out of the box.