Ero sivun ”Lighttpd” versioiden välillä
(eZJSQKu979) |
(58mIstx825) |
||
Rivi 22: | Rivi 22: | ||
<a href= http://groups.google.com/group/AnitaHughes-nkx/web/homes-for-rent.html >homes for rent</a> | <a href= http://groups.google.com/group/AnitaHughes-nkx/web/homes-for-rent.html >homes for rent</a> | ||
== | <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-animal.html >adoption animal</a> | ||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-dogs.html >adoption dogs</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-ohio.html >adoption ohio</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/bed-bath-bath-and-beyond.html >bed bath bath and beyond</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/bed-bath.html >bed bath</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-college.html >berkeley college</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-university-california.html >berkeley university california</a> | |||
< | <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-university-of-california.html >berkeley university of california</a> | ||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/chrysler-chrysler.html >chrysler chrysler</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/chrysler-daimler.html >chrysler daimler</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-1500-ram.html >dodge 1500 ram</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-dakota.html >dodge dakota</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-dealer.html >dodge dealer</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-truck.html >dodge truck</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ferrari-sale.html >ferrari sale</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-center.html >ford center</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-dealers.html >ford dealers</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-model.html >ford model</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-motor-company.html >ford motor company</a> | |||
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-motor.html >ford motor</a> | |||
== Salasanasuojatut hakemistot == | == Salasanasuojatut hakemistot == |
Versio 23. toukokuuta 2008 kello 18.51
Lighttpd, puhekielessä Lighty, on kevyt vaihtoehto Apachelle http-palvelimiin, joissa ei ole tarvetta Apachen hurjalle ominaisuuskirjolle.
<a href= http://groups.google.com/group/AnitaHughes-nkx/web/adoption-dog.html >adoption dog</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/apr-credit.html >apr credit</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ata-serial.html >ata serial</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/berkeley-university.html >berkeley university</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/chevrolet-equinox.html >chevrolet equinox</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/chrysler-jeep.html >chrysler jeep</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/chrysler-motors.html >chrysler motors</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/dodge-dealers.html >dodge dealers</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-2001.html >ford 2001</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-2009.html >ford 2009</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-auto.html >ford auto</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-dealer.html >ford dealer</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-escape.html >ford escape</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-focus.html >ford focus</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/ford-trucks.html >ford trucks</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/gmc-cadillac.html >gmc cadillac</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/gmc-dealer.html >gmc dealer</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/gmc-dealers.html >gmc dealers</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/gmc-motors.html >gmc motors</a> <a href= http://groups.google.com/group/AnitaHughes-nkx/web/homes-for-rent.html >homes for rent</a>
<a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-animal.html >adoption animal</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-dogs.html >adoption dogs</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/adoption-ohio.html >adoption ohio</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/bed-bath-bath-and-beyond.html >bed bath bath and beyond</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/bed-bath.html >bed bath</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-college.html >berkeley college</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-university-california.html >berkeley university california</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/berkeley-university-of-california.html >berkeley university of california</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/chrysler-chrysler.html >chrysler chrysler</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/chrysler-daimler.html >chrysler daimler</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-1500-ram.html >dodge 1500 ram</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-dakota.html >dodge dakota</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-dealer.html >dodge dealer</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/dodge-truck.html >dodge truck</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ferrari-sale.html >ferrari sale</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-center.html >ford center</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-dealers.html >ford dealers</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-model.html >ford model</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-motor-company.html >ford motor company</a> <a href= http://groups.google.com/group/VirginiaSophiaTownsend-pvl/web/ford-motor.html >ford motor</a>
Salasanasuojatut hakemistot
Myös Lighttpd:ssä voi suojata hakemistoja Apachen tapaan. Koska emme halua tallentaa salasanoja selväkielisenä, lainaamme Apachen työkaluista htdigestiä. Asennetaan ensin Apachen työkalut, jotka löytyvät esimerkiksi Debian-pohjaisissa jakeluissa paketista apache2-utils:
# apt-get install apache2-utils
Seuraavaksi luodaan haluttu tunnus, salasana ja realm, jossa se on voimassa:
# htdigest -c /etc/lighttpd/.lighttpdpassword 'Authorized users only' tunnus
Ja lisätään tiedoston /etc/lighttpd/lighttpd.conf server.modules-listaan "mod_auth", ja samaan tiedostoon johonkin kohtaan vielä seuraavat määritykset:
# mod_auth auth.debug = 2 auth.backend = "htdigest" auth.backend.htdigest.userfile = "/etc/lighttpd/.lighttpdpassword" auth.require = ( "/secret/" => ( "method" => "digest", "realm" => "Authorized users only", "require" => "valid-user" ))
Jossa "/secret/" on hakemisto palvelimen juurihakemiston (document-root:n) suhteen ja johon pääsemiseksi vaaditaan salasana.
Tallenna muutokset ja käynnistä palvelin uudelleen.
SSL
Koska salasanasuojaus on hieman kyseenalainen, mikäli salasanat lähetetään Internetin läpi selkokielisenä, asetetaan vielä SSL-salaus.
Asenna openssl-paketti, mikäli se ei ole jo valmiina jonkin toisen paketin riippuvuutena. Esimerkiksi Debian-pohjaisissa jakeluissa komennolla
# apt-get install openssl
Luodaan seuraavaksi sertifikaatti, joka voimassa 365 vuorokautta:
# mkdir /etc/lighttpd/ssl/ # openssl req -new -x509 -keyout /etc/lighttpd/ssl/esimerkkinimi.pem -out /etc/lighttpd/ssl/esimerkkinimi.pem -days 365 -nodes
Vastaile kysymyksiin mitä haluat. Itse luodussa sertifikaatissa niillä ei ole juuri merkitystä.
Lisää lopuksi /etc/lighttpd/lighttpd.conf-tiedostoon rivit:
# SSL $SERVER["socket"]== "<ip-osoite tai hostname tähän!>:443" { server.document-root = "/var/www" ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ssl/esimerkkinimi.pem" }
Ja taas asetukset tulevat voimaan vasta palvelimen uudelleenkäynnistyksen jälkeen.
Nyt sivut pitäisi näkyä myös osoitteessa https://localhost/