Symfony 5, Nginx Rewrites for ISPconfig 3.1

Discussion in 'Installation/Configuration' started by degoya, Sep 21, 2020.

  1. degoya

    degoya New Member

    Hello Forum Users,

    i try to get Symfony Framework 5 running under ISPconfig3.1 on Debian 9 with Nginx.

    After the Files are in a Public Folder i need to change the root of the Doc to point to /public in the web Folder.

    I've used the following rewrite (This rewrite works for SlimFramework with the same kind of Setup.)

    location / {
        root {DOCROOT}public;
        index index.php;
        try_files $uri $uri/ /index.php?$query_string /public/index.php?$query_string;
    Mainly the Routing works to routes like /home /users but not to the root /
    on the root i get a 404 error.

    anybody got a working rewrite to use Symfony5 where the routing to root works ?

Share This Page