Mainos / Advertisement:
Ero sivun ”Apache2” versioiden välillä
Siirry navigaatioon
Siirry hakuun
Rivi 18: | Rivi 18: | ||
== .htaccess == | == .htaccess == | ||
+ | |||
+ | .htaceess tiedosto mahdollistaa konfigurointi tiedostojen tallentamisen suoraan verkkosivuhakemistoon, esimerkiksi /var/www/.htacess. | ||
Muokkaa | Muokkaa |
Versio 5. toukokuuta 2014 kello 20.32
Apache on yleinen verkkosivuja varten palvelu.
Apachen asennetaan komennolla:
aptitude install apache2
Apachen oletusverkkosivuhakemisto sijaitsee:
/var/www
Apachen konfigurointi tiedostot löytyvät täältä:
/etc/apache2
Oletusverkkosivun asetukset löytyvät täältä:
nano /etc/apache2/sites-enabled/000-default
.htaccess
.htaceess tiedosto mahdollistaa konfigurointi tiedostojen tallentamisen suoraan verkkosivuhakemistoon, esimerkiksi /var/www/.htacess.
Muokkaa
/etc/apache2/sites-available/default
seuraavanlaiseksi:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Uncomment this directive is you want to see apache2's # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ </Directory>
Mainos / Advertisement: