Mihir reports various issues after rebuilding a Discourse installation in a subdirectory, including missing images, failed uploads in the setup wizard, and incorrect redirects to a URL like https://domain.com/dir/wizard/wizard. Despite following the subdirectory installation guide and rebuilding twice, the problems persist. Mihir notes that the rebuild was only to update SMTP settings, which shouldn’t cause these issues. codinghorror advises against subdirectory installs due to complexity and lack of support, but Mihir explains the need for a keyword in the URL, making it necessary. Mihir, a developer with no Ruby experience, requests guidance on troubleshooting or relevant logs to check Mihir.
I installed discourse on a subdirectory recently, everything seemed fine. After rebuilding it, I have started facing various issues. I tried rebuilding again, with no success.
Images (logo) went missing - returns 404. Even trying to reupload through setup wizard fails. It does not upload anything.
Images on setup wizard does not display (like the images for dark/light theme, among others)
I had followed the guide article for subdirectory install and everything was fine until I rebuilt. I rebuilt to update SMTP settings, which I am sure can’t be responsible for breaking these things.
Do you really need a subfolder install? It is substantially more complex and harder to troubleshoot. We recommend against it, and we only support that install on our enterprise hosting, with an additional fee.
I kinda have to, I need to stuff a keyword in the URL and this seems to be the easiest way to do so. Rewriting url structure is much more difficult.
I tried this setup twice. Faced the same issue first time, I thought I made a mistake so deleted entire VPS and started over. Still the same.
If you could provide a hint on what could cause this issue or what logs to check, that would be very helpful. I’m a developer but have no experience with Ruby.