Hi,
I'm using ecstatic behind a proxy, something like proxying http://localhost/a to http://localhost:8080, where 8080 is the port ecstatic is listening to. The problem is that ecstatic uses absolute url for href, which resolves to a url where the file path is directly appended to the host part, instead of the current url.
For instance, when browsing from http://localhost/a, clicking folder f navigates to http://localhost/f/, instead of http://localhost/a/f/.
I noticed that there's a baseDir option, but it's irrelevant here since the base url(/a) is already eaten by the proxy before baseDir applies.
Using relative url for href may be a solution, but I'm not sure whether you are using absolute path for some reason. How do you think?
Hi,
I'm using ecstatic behind a proxy, something like proxying http://localhost/a to http://localhost:8080, where 8080 is the port ecstatic is listening to. The problem is that ecstatic uses absolute url for
href, which resolves to a url where the file path is directly appended to the host part, instead of the current url.For instance, when browsing from http://localhost/a, clicking folder
fnavigates to http://localhost/f/, instead of http://localhost/a/f/.I noticed that there's a
baseDiroption, but it's irrelevant here since the base url(/a) is already eaten by the proxy beforebaseDirapplies.Using relative url for
hrefmay be a solution, but I'm not sure whether you are using absolute path for some reason. How do you think?