Giter Club home page Giter Club logo

Comments (7)

vinoski avatar vinoski commented on May 14, 2024

I ran yaws -i with docroot set to a relative directory named "tmp" in the current directory, and it seemed to work:

 =INFO REPORT==== 13-Apr-2011::16:22:41 ===
 Yaws: Listening to 127.0.0.1:8003 for <1> virtual servers:
  - http://localhost:8003 under /usr/local/src/yaws/tmp

By relative directory do you mean something more like ../../foo ?

from yaws.

vinoski avatar vinoski commented on May 14, 2024

I tried with docroot set to ../../var/yaws/www and got this:

=INFO REPORT==== 13-Apr-2011::16:28:19 ===
Yaws: Listening to 127.0.0.1:8003 for <1> virtual servers:
 - http://localhost:8003 under /usr/local/src/yaws/../../var/yaws/www

and was able to fetch files from the docroot, so it looks like this works too.

from yaws.

klacke avatar klacke commented on May 14, 2024

closing, works fine

from yaws.

stofel avatar stofel commented on May 14, 2024

yaws 1.94
=INFO REPORT==== 19-Oct-2012::05:39:10 ===
Yaws: Listening to 0.0.0.0:8800 for <1> virtual servers:

from yaws.

capflam avatar capflam commented on May 14, 2024

I assume you try to start Yaws in embedded mode (or you add a virtual server by hand using yaws:add_server/2).
There is no docroot validation in these cases. It is a bug and I will fix it today.

Thanks!

from yaws.

capflam avatar capflam commented on May 14, 2024

I pushed a fix (commit b3bc43c). Can you confirm that it fixes your problems ?

from yaws.

stofel avatar stofel commented on May 14, 2024

I set Docroot by yaws_api:embedded_start_conf(Docroot, SconfList, GconfList, Id).
Today cloned yaws set Docroot properly!

Thanks!

from yaws.

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.