Регистрация | Войти
Lisp — программируемый язык программирования
RESTAS vhosts sample
Автор: archimag - 2011-03-04T13:06:24.000000+03:00
(asdf:operate 'asdf:load-op '#:restas-directory-publisher)

(restas:start '#:restas.directory-publisher
              :port 8080
              :hostname "tmp.localhost"
              :context (restas:make-context
                         (restas.directory-publisher:*directory* #P"/tmp/")
                         (restas.directory-publisher:*autoindex* t)
)
)


(restas:start '#:restas.directory-publisher
              :port 8080
              :hostname "home.localhost"
              :context (restas:make-context
                         (restas.directory-publisher:*directory* #P"/home/")
                         (restas.directory-publisher:*autoindex* t)
)
)
@2009-2013 lisper.ru