nginX Config for Box Billing

Hello, Please Help me to add BoxBilling nginX config
Here is code :

location ~ bb-admin.php {
if (!-e $request_filename) {
rewrite ^(.+)$ /bb-admin.php?$1 last;
}
}

location / {
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?$1 last;
}
}

i’ve try to add this code, but when active new template my nginX was Down… after remove this nginX running again, please help me to add this code on nginX template…

You need the full template:

And only add

location ~ bb-admin.php {
if (!-e $request_filename) {
rewrite ^(.+)$ /bb-admin.php?$1 last;
}
}

location / {
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?$1 last;
}
}

And only add the missing information

1 Like

Which place to add those lines??

i’ve added before ::

location / {

    location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
        expires     max;..........................

but not working… :frowning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.