Branding / Custom pages not working
-
Hi there! Just tried to customize the not-responding template by creating a file in
/home/yellowtent/boxdata/custom_pages/app_not_responding.html
as suggested here, but it doesn't seem to get registered. I did chown the folder with yellowtent and even restarted the server, but neither seemed to have done the trick. Am I missing something? -
Yea the reboot was just to make sure, I only restarted box before, that didn't work so I tried restarting the server. I've tried by restarting an app instead of stopping it, but it's probably the same thing with either option.
What exactly am I looking for? (sidenote: system/nginx/logs is empty and "Download Full Logs" results in a 404.)
-
@msbt I suspect this is because the app is not using the latest nginx config. Go to the Location view and just click save to re-generate the latest nginx config. After that, stop the app and you should see the not responding page.
-
@msbt unfortunately, no. But new apps will get latest config.
-
Hi!
When I create an app_not_responding.html page to use as a custom page and add an image in the html code that I upload to the same directory (/home/yellowtent/boxdata/custom_pages/) , then image doesn't load. I can see the text, but not image.
I'm putting this code: <img src = "sad-dog.jpg" alt = "upps" width = "30%">
The html and the image have the appropriate permissions and as owner I have set yellowtent.
EDITED: Finally I created a folder where I put the images inside, I redirected them in the code and it worked.
<img src = "/images/sad-dog.jpg" alt = "upps" width = "30%">
-
@mdreira said in Branding / Custom pages not working:
Hi!
When I create an app_not_responding.html page to use as a custom page and add an image in the html code that I upload to the same directory (/home/yellowtent/boxdata/custom_pages/) , then image doesn't load. I can see the text, but not image.
I'm putting this code: <img src = "sad-dog.jpg" alt = "upps" width = "30%">
The html and the image have the appropriate permissions and as owner I have set yellowtent.
EDITED: Finally I created a folder where I put the images inside, I redirected them in the code and it worked.
<img src = "images/sad-dog.jpg" alt = "upps" width = "30%">
Way to go
The best way to learn is to dig even deeper once the support question is posted.
I've always applied this principle all long my IT career, and 80-90% of the time I find the solution before the tech-supp replies. No kidding.
And posting your own solution here you help a bunch more who will not need to post that question. Only read and apply!
Regards,
Andy -
@mdreira probably a long term solution to embed images is to also embed it inline in the html. You can use a tool like https://base64.guru/converter/encode/image/png