WP-AppKit - NGINX Rules


I use EE for a few sites. Love it. Works great.

I am using a WP plugin called WP-AppKit which helps build my site into a Native Android/iOS App.

Be default, it works with Apache. However it is compatible with NGINX.

The plugin requires that I insert the following directives into my NGINX config.

I used the ee site edit domain name to add the following lines:

location ~ .*/wp-appkit/app/config.(js|xml) { try_files $uri /index.php?$args; }

location ~ ./wp-appkit/app/themes/. { try_files $uri /index.php?$args; }

location ~ ./wp-appkit/app/addons/. { try_files $uri /index.php?$args; }

Saved the file and restarted NGINX (which EE does for us). No problem.

However, when i try reach the file I need, I still get an NGINX 404 error.

Is there somewhere else that I need to add these rules?

ask Dev where to add These rules looks like you need to create a separate file with name wp-appkit.conf in /etc/nginx/common with these rules and then add it in nano /etc/nginx/sites-available/example.com like this include /etc/nginx/common/wp-appkit.conf;

1 Like

Thank you so much. I am self taught so stil trying to understand NGINX. All i know is that it works like a charm.

Even better, so did your response. Thank you again and for such a quick reply!

Well Glad it helped you im also very new all this and sometime its really hard to find out the solution

Thinking of developing custom themes for progressive apps with the love of EE around it.

1 Like

Love to try it