-
Fototrend
OpenWrt topic
Új hozzászólás Aktív témák
-
Csygusz
tag
válasz
vargalex
#3249
üzenetére
Igen, közben rájöttem, de már nem tudtam beírni, hogy remélem senki nem látta a lámaságom.
Köszönöm a segítséget, most az összes létező funkciója ki van használva az openwrt-nek
Már csak az FTP részen szeretnék módosítani, hogy ne csak root user, hanem más felhasználó más jelszóval is beléphessen. Ehhez milyen fájlok módosítása szükséges?
-
Csygusz
tag
válasz
vargalex
#3247
üzenetére
Nos, közben átbuheráltam mindent. uhttp 8080 portján fut a luci csak és kizárólag.
Lighttp 80-as portján fut a másik weblap. A kezdőlappal viszont bajban vagyok,mert index.html megy hibátlanul, viszont az index.php-re ismételten forbiddent kapok
Pedig php telepítve vagyon. Vagy azon is configolni kell valamit?Ez közel alapértelmezett módban van. Ha pl. mod_cgi vagy akármilyen mod elől elveszem a #-t el sem indul a szerver, pedig 2-3 kivételével az összes mod telepítve van. (nem mintha egyelőre kellene)
# lighttpd configuration file
#
## modules to load
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
#server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_cgi",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_webdav"
#)# force use of the "write" backend (closes: #2401)
server.network-backend = "write"## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "/mnt/www/"## where to send error-messages to
#server.errorlog = "/mnt/www/log/lighttpd/error.log"## files to check for if .../ is requested
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )## mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
".class" => "application/octet-stream",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".svg" => "image/svg+xml",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml"
)## Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetypes.use-xattr = "enable"## send a different Server: header
## be nice and keep it at lighttpd
#server.tag = "lighttpd"$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 = ( ".php", ".pl", ".fcgi" )######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
server.port = 80## bind to localhost (default: all interfaces)
#server.bind = "localhost"## 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"###### virtual hosts
##
## If you want name-based virtual hosting add the next three settings and load
## mod_simple_vhost
##
## document-root =
## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
## virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"##
## Format: <errorfile-prefix><status>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix = "/www/error-"## virtual directory listings
server.dir-listing = "enable"## send unhandled HTTP-header headers to error-log
#debug.dump-unknown-headers = "enable"### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"## change uid to <uid> (default: don't care)
#server.username = "nobody"
#
#server.upload-dirs = ( "/mnt/www/tmp" )## change uid to <uid> (default: don't care)
#server.groupname = "nobody"#### compress module
#compress.cache-dir = "/dev/null/"
#compress.filetype = ("text/plain", "text/html")#### proxy module
## read proxy.txt for more info
#proxy.server = (
# ".php" => (
# "localhost" => (
# "host" => "192.168.0.101",
# "port" => 80
# )
# )
#)#### fastcgi module
## read fastcgi.txt for more info
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php"
)
)
)#### CGI module
cgi.assign = ( ".php" => "/usr/bin/php-cgi", ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" )#### SSL engine
#ssl.engine = "enable"
#ssl.pemfile = "server.pem"#### status module
#status.status-url = "/server-status"
#status.config-url = "/server-config"#### auth module
## read authentification.txt for more info
#auth.backend = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.require = (
# "/server-status" => (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "group=www|user=jan|host=192.168.2.10"
# ),
# "/server-info" => (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "group=www|user=jan|host=192.168.2.10"
# )
#)#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
# url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
$HTTP["host"] == "csiga.x64.me" {
server.name = "csiga.x64.me"
server.document-root = "/mnt/www"
compress.cache-dir = "/var/cache/lighttpd/compress/" + server.name
}#### expire module
#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")#### ssi
#ssi.extension = ( ".shtml" )#### setenv
#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1#### webdav
#$HTTP["url"] =~ "^/webdav($|/)" {
# webdav.activate = "enable"
# webdav.is-readonly = "enable"
# webdav.sqlite-db-name = "/var/run/lighttpd-webdav-lock.db"
#} -
Csygusz
tag
válasz
vargalex
#3243
üzenetére
Javítva, de még mindig "Forbidden You don't have permission to access /index.html on this server." Internet Explorer szerint pedig tiltott 403.
A másik érdekesség számomra az, hogy azonnal a /cgi-bin/luci mappára akar átirányítani. De én azt nem akarom. Mivel olyan nem létezik, hogy /mnt/www/cgi-bin/luci Lehet, hogy a Chrome-nak egy cache ürítés nem ártana?Aposztrófozást is átírtam gyors, újraindítottam az uhttp-t, de még mindig Forbidden, és Tiltott 403 fogad :S
-
Csygusz
tag
válasz
vargalex
#3241
üzenetére
Ez volna. Gondoltam én egyszerű gyerek, hogy a Luci-t átrakom 80-as portról 8080-ra, ezzel nincs is gond. Viszont a 80-as porton akárhogy próbálom megnyitni, mindig Forbidden fogad (ami jobb, mint az eddig elért dolog, mert eddig nem találhatónak titulálta
)config uhttpd 'weblap'
list listen_http 0.0.0.0:80
#list listen_https 0.0.0.0:443
option home /mnt/www
list interpreter ".php=/usr/bin/php-cgi"
option index_page index.html, index.phpconfig uhttpd 'main'
list listen_http '0.0.0.0:8080'
#list listen_https '0.0.0.0:443'
option home '/www'
option rfc1918_filter '0'
option max_requests '3'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
option script_timeout '60'
option network_timeout '30'
option tcp_keepalive '1'
option realm 'OpenWrt'
#option lua_prefix '/lua'
#option lua_handler '/root/test.lua'config cert 'px5g'
option days '730'
option bits '1024'
option country 'HU'
option state 'Budapest'
option location 'Budapest'De ha olyan megoldás is létezik, hogy uhttp-vel 8080-as porton mehet a Luci, lighttp-vel pedig mehet 80-as porton más weblap, nekem az is tökéletesen megfelel

-
Csygusz
tag
Üdv mindenkinek.
Már két napja azzal szívok, hogy hogyan kell beállítani az uhttpd-d, apache-ot, php-t, hogy a luci mellett az usb-n rákötött merevlemez www mappájából üzemeljen egy weboldal.
Esetleg valaki tud bent segítséget nyújtani, hogy mit merre kell konfigolni? Addig már eljutottam, hogy a luci csak a 8080-as porton elérhető. A 80-as portról pedig szeretném üzemeltetni a weblapot. De állandóan átirányítja a cgi-bin/luci mappába...
Szóval ha valaki tud tippet adni, ne kíméljen, és előre is köszönöm
-
Csygusz
tag
Hello!
A problémám jelenleg nekem sem kicsi
Van egy TP-Link WR842ND routerem openwrt-vel vértezve, frissítettem, és most sem putty-ból sem luciból nem érem el. Nem azonosított hálózatként jelenítette meg 3 gép is. Kicsit most elkeseredett vagyok.
Van valakinek tippje, hogy hogyan orvosolható ez a probléma? -
Csygusz
tag
Üdv mindenkinek!
Kérdésem az volna, hogy OpenWRT-vel felvértezett routerem USB portját, ha egy usb hubbal elosztom, az megoldható, hogy rácsatlakoztassak nyomtatót és pendriveot egyidejűleg?
Szerk: a kérdésemre a válasz igen.Most már csak az érdekelne, hogy ehhez kell valami plusz funkciót installálni az openwrtbe, vagy csak simán rádobom a pendrivera, a hubon keresztül rádugom a routerre és rádobom a nyomtatót, és már kész is?
Új hozzászólás Aktív témák
- MWC 2026 exkluzív: Bemutatom a Pininfarina mobilt
- Revolut
- Bambu Lab 3D nyomtatók
- AMD APU (AM4 és AM5) topik
- exHWSW - Értünk mindenhez IS
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Hogy is néznek ki a gépeink?
- Az eddigi legolcsóbb, 3D V-Cache-t használó CPU-ját hozta forgalomba az AMD
- Nothing Phone (3a) és (3a) Pro - az ügyes meg sasszemű
- Iqos cigaretta
- További aktív témák...
- Game Pass Ultimate előfizetések 1 - 36 hónapig azonnali kézbesítéssel a LEGOLCSÓBBAN! AKCIÓ!
- Bitdefender Total Security 3év/3eszköz! - Tökéletes védelem.
- Kaspersky, BitDefender, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Vírusirtó, Antivirus, VPN kulcsok GARANCIÁVAL!
- Adobe Előfizetések - Adobe Creative Cloud All Apps - 12 Hónap - 15% AKCIÓ
- Apple iPhone 15Pro 128GB - Kártyafüggetlen, Fekete Titán, 85% Akku - 1év Garanciával
- Apple iPad mini 6 (64GB) Wi-Fi + Cellular (5G) - Asztroszürke
- Dell Latitude 5580,15.6",FHD,i5-6300U,8GB DDR4,256GB SSD,WIN11
- iking.hu Apple iPhone XR 64GB használt White megkímélt 100% akku 6 hónap garancia
- GYÖNYÖRŰ iPhone 13 256GB Midnight -1 ÉV GARANCIA - Kártyafüggetlen, MS4447, 100% Akkumulátor
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest


