Comment to 'UNA nginx rewrite rules'
  • Hi - wondering if you can help -- have installed UNA on a AWS nginx server --all good -  have run the scrip and ran the rewrite rules -- my UNA application files are in the "opt/bitnami/nginx/html" folder and my code below to set the rewrite rules was added to replace the original "location" block in the "nginx.conf" file within the "opt/bitnami/nginx/conf" folder - the added code is as follow:

    location / {index index.html index.htm index.php;rewrite "^/html/page/(.*)$" /html/page.php?i=$1 last;rewrite "^/html/m/(.*)$" /html/modules/index.php?r=$1 last;rewrite "^/html/s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)" /html/storage.php?o=$1&f=$2 last;if (!-e $request_filename ) {rewrite ^/html/(.+)$ /html/r.php?_q=$1 last;break;}}

    All works fine when I point to //myserver/index.php - I see the homepage and can login to my "Studio" page as well -- but every time I try to do something else, it points me to a "/page/....." location - for example if I go to "Dashboard' then it points me to //myserver/page/dashboard and I get a "404 Not Found"

    Is there anything I am missing - how can I make it so it loads all pages requested without the error? - is there anything wrong in the code?

    Thank you