Нет, результат тот же и с
Code:server.error-handler-404 = "/opt/share/www/404.html"
Printable View
Немного перемудрил с lighttpd.conf. У кого-нибудь сохранился дефолтный файл? Прикрепите, пожалуйста.
В очередной раз извиняюсь, в лайттпд разобрался. Решил поставить Перл. поставил путем ipkg install perl. В конфиг фаиле лайттпд прописал пути /opt/bin/perl. Все бы хорошо но перл фаилы не запускаются. не смотря на то что ставишь на них чмод 777. ошибку выдает 500 - Internal Server Error. Где можно посмотреть что его не устраивает. возможно кто то уже сталкивался с подобной проблемой. Прошу помощи.
извеняюсь за создание такой темы. наверняка все уже обсуждалось и не раз. но тем не менее поиском решение такой проблемы не нашел.
настроил скриптами доступными на форуме лихттпд. Но все страницы из вне открываются только по протоколу https и требует ввод логина и пароля. как сделатьтак чтобы только папка рторрента требовала хттпс, а например корневой каталог ввв отрывался в обычном хттп ) Заранее большое спасибо )
Весь инет перерыл, а ответа так и не нашел. может у меня веб сервер не правильно робит?
самое простое это два корня, но web-морду самого роутера надо перевесить с порта 80.
http://wl500g.info/showpost.php?p=128994&postcount=6
Т.е. Вы никак не могли увидеть прикрепленную тему "Для новичков и ленивых", увидеть там 13 пункт, и первую ссылку в нем
http://wl500g.info/showpost.php?p=90459&postcount=343
тоже?
что у вас не получается? зачем вам английский, тут инструкций на руском на все случаи жизни.
Я хочу получить доступ по хттп к папке ввв а доступ к папке ввв рторрент по ссл.
вот у человека чтото пододное получилось. но мне кажется у него это не правильно реализованно http://wl500g.info/showthread.php?t=...ght=http+https
Все настроил всем спасибо. если нужно могу выложить фаил конфига
Вот конфиг как пример
тут два инстанса, один сокет смотрит 80 порт другой 443, у каждого свой корень (server.document-root=... )Code:## modules to load
server.modules = (
"mod_access",
"mod_auth",
"mod_cgi",
"mod_scgi",
"mod_accesslog" )
server.document-root = "/opt/share/www/80"
## where to send error-messages to
server.errorlog = "/opt/var/log/lighttpd/error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"lighttpd/index.html" )
# mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
#### accesslog module
accesslog.filename = "/opt/var/log/lighttpd/access.log"
## deny access the file-extensions
#
# ~ is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
# of the document-root
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".fcgi", ".php", ".pl", ".py", ".rb" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
server.port = 80
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts
server.pid-file = "/var/run/lighttpd.pid"
#### CGI module
cgi.assign = ( ".pl" => "/opt/bin/perl",
".cgi" => "/bin/sh" )
#
$SERVER["socket"] == ":443" {
server.document-root = "/opt/share/www/443"
#### SSL engine
ssl.engine = "enable"
ssl.pemfile = "/opt/var/run/lighttpd.pem"
#ssl.ca-file = "ca.crt"
#ssl.verifyclient.activate = "enable"
#ssl.verifyclient.enforce = "enable"
#ssl.verifyclient.depth = 1
#### auth module
## read authentication.txt for more info
auth.backend = "htdigest"
auth.backend.plain.userfile = "/opt/etc/lighttpd/.passwd"
auth.require = ( "/rtorrent" =>
(
"method" => "basic",
"realm" => "rtorrent access",
"require" => "valid-user"
),
"/RPC2" =>
(
"method" => "basic",
"realm" => "rtorrent access",
"require" => "valid-user"
),
)
# Configuration from other optware packages
include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"
Вам надо лиш создать сертефикат и прописать пользователей в через htdigest.
большое спасибо) уже сам до этого дошел )
В очередной раз извиняюсь, в лайттпд разобрался. Решил поставить Перл. поставил путем ipkg install perl. В конфиг фаиле лайттпд прописал пути /opt/bin/perl. Все бы хорошо но перл фаилы не запускаются. не смотря на то что ставишь на них чмод 777. ошибку выдает 500 - Internal Server Error. Где можно посмотреть что его не устраивает. возможно кто то уже сталкивался с подобной проблемой. Прошу помощи.