[Linuxtrent] Re: apache2 avvio e riavvio

  • From: "mattruffoni\@libero\.it" <mattruffoni@xxxxxxxxx>
  • To: "linuxtrent" <linuxtrent@xxxxxxxxxxxxx>
  • Date: Fri, 4 Jul 2008 12:39:36 +0200

>mattruffoni@xxxxxxxxx ha scritto:

>controlla i parametri nei singoli file di configurazione
>(/etc/apache2/sites-enabled/xxx e i vari .htaccess) VirtualHost * /

>Directory
>              Order allow,deny
>              allow from all

questi sono i permessi della cartella /var/www nel file 
/etc/apache2/sites-enabled/
che riesco a vedere in collegandomi dallo stesso pc su localhost

e questo è il file

NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>



per esempio le due sole righe non commentate di un .htaccess

"##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On"


--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: