lighttpd / Virtual Host Setup with Simple Vhost questions: … mple-vhost">

It says:

simple-vhost.document-root = "/pages/"

I am not sure I understand . It says:

The document-root defines the subdirectory under the default-host directory that contains the pages to be served. This is comparable to the public_html/ directory you may be familiar with from some Apache configurations, and is called pages/ in the above configuration.

Why does it require a directory under the default host? Does this mean that when the request is not to the default host then it would be directed to the root of that domain? or does there need to be an identical directory in each domain root?

Do I just create the directories under simple-vhost.server-root for each? Do I create directories for logs? Is that done automatically?

0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct