Mainos / Advertisement:
Apache2
Versio hetkellä 5. toukokuuta 2014 kello 20.32 – tehnyt Minh (keskustelu | muokkaukset) (→.htaccess)
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
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: