SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Назад

lighttpd


Метки: [lighttpd]; [lighttpd.conf];

Установка каталога

export WORKDIR=`pwd` # текущий
export WORKDIR=/home/user/project1 # для конкретного проекта

Запуск

lighttpd -D -f lighttpd.conf
--- lighttpd.conf
lighttpd.conf Скачать
server.document-root = env.WORKDIR

server.modules += ("mod_rewrite")

server.port = 5000

mimetype.assign = (
  ".html" => "text/html", 
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png" 
)

index-file.names = ( "index.html" )

url.rewrite-if-not-file = ( "" => "/index.html" )