Mainos / Advertisement:

Ero sivun ”Apache2” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
Rivi 16: Rivi 16:
  
 
   nano /etc/apache2/sites-enabled/000-default
 
   nano /etc/apache2/sites-enabled/000-default
 +
 +
== .htaccess ==
 +
 +
        <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>

Versio 5. toukokuuta 2014 kello 20.31

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

        <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: