azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.97k stars 105 forks source link

[BUG]: Subdirectory URLs not working #181

Closed 4abhinavjain closed 5 months ago

4abhinavjain commented 5 months ago

What happened?

Cosmos looks very promising and I am thinking of switching from Caprover. However, I would like to use subdirectories for different services instead of subdomain.

What should have happened?

Routes for subdirectories should work normally.

How to reproduce the bug?

  1. I tried deselecting "use host" and defined a "path prefix" as a subdirectory. However, when I visit the site, I get "Not found. Go to default page".

image

  1. If I select "Strip path prefix" and "use host" (which I use the same hostname as the one for cosmos) then it works partially:

image

image

  1. Could anyone guide if it is some mistake or bug, or subdirectories are not supported (I recall that some dockerized services does not support subdirectories)?

Relevant log output

No response

Other details

No response

System details

azukaar commented 5 months ago

Unfortunately it's up to individual application to support (or not) being in a subpath. If they do, usually a setting is avaialble to tell it what subpath to support. There is really nothing that can be done about this at Cosmos level