Giter VIP home page Giter VIP logo

Comments (9)

seejohnrun avatar seejohnrun commented on July 21, 2024 1

I'll try to get something together this week

from haste-server.

seejohnrun avatar seejohnrun commented on July 21, 2024

Currently not supported due to https://github.com/seejohnrun/haste-server/blob/master/server.js#L113
Would be easy to add a root_path param to config

from haste-server.

randomessence avatar randomessence commented on July 21, 2024

Thanks. I will try that.

from haste-server.

Grimeton avatar Grimeton commented on July 21, 2024

As it turns out: it works.

I patched it but the patch didn't go down the way it should.

On the client side the subdirectory becomes part of the key that is used to handle the file. So instead of "$key" you get something like "subdirectory/$key" which is kinda annoying and can only be fixed by changing the routes in the main server. They have to be change anyway to support "$subdir/$key" but in the end they need to support "$subdir/$subdir/$key" because of the mess that happens on the client side.

It's also a problem to get the new subfolder to the client part without patching stuff. I had to patch the application.js file to make the requests go to the right place.

So far it doesn't seem easy to just add a root_path variable.

Any hints or tips that could help me to implement it and I'm offering the patch :)

KR,

G.

from haste-server.

seejohnrun avatar seejohnrun commented on July 21, 2024

Thanks for the update @Grimeton - you can follow along with #53 for updates on subdirectory modifications (should be done soon)

from haste-server.

thorn1976 avatar thorn1976 commented on July 21, 2024

I really like the haste-server, but the lacking subdirectory support unfortunately is a show-stopper in my environment. Are there any plans on supporting subdirectories soon?

from haste-server.

cgelici avatar cgelici commented on July 21, 2024

I'm trying to get haste-server working with a lighttpd reverse proxy. What I want is to browse to 'mydomain.com/p/' where my haste-server will greet me.

I have the following set up:

$HTTP["url"] =~ "^/p/" {
proxy.server = (
"" => (
(
"host" => "",
"port" =>
)
)
)
}

Where myhost and port are set properly. With this enabled I get a partial response. Meaning, I only receive the title of the page, and nothing else. Can anyone help me with this ?

from haste-server.

tmiklas avatar tmiklas commented on July 21, 2024

Problem sorted - I've described how to do it at http://www.ctrl-alt-del.cc/2014/11/haste-server-base-url-hackpatch.html with working configs for HAProxy, Lighttpd, Nginx and Apache.
Pull request coming up of course.

from haste-server.

kolargol avatar kolargol commented on July 21, 2024

anything new in this topic? Is subdir enabled so we can put it behind proxy ?

from haste-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.