Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2.0.55-r1 e DocumentRoot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Sun Feb 19, 2006 12:55 pm    Post subject: Apache 2.0.55-r1 e DocumentRoot Reply with quote

Salve ragazzi, ho questa versione di Apache (2.0.55-r1) e non riesco in nessun modo a cambiare la DocumentRoot! da "/var/www/localhost/htdocs" in "/mnt/HD_Esterno"! :?

Potreste darmi una mano? Grazie
_________________
.:: `Starinthe` ::.
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Feb 19, 2006 12:58 pm    Post subject: Re: Apache 2.0.55-r1 e DocumentRoot Reply with quote

controlla nelle definizioni dei VirtualHosts:
/etc/apache2/vhosts.d/00_default_vhost.conf
Back to top
View user's profile Send private message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Sun Feb 19, 2006 1:05 pm    Post subject: Reply with quote

Code:

NameVirtualHost *:80
<IfDefine DEFAULT_VHOST>
<VirtualHost *:80>

    # DocumentRoot "/var/www/localhost/htdocs"
      DocumentRoot "/mnt/HDShared"

        Options Indexes FollowSymLinks

        Allow from all
    </Directory>

    <IfModule peruser.c>
        ServerEnvironment apache apache

        MinSpareProcessors 4
        MaxProcessors 20
    </IfModule>
</VirtualHost>
</IfDefine>


Dovrebbe essere ok no? Mi da "403 Forbidden" (You don't have permission to access / on this server.)

PS: Cmq ho notato che nei log c'è: "[Sun Feb 19 14:12:00 2006] [crit] [client 83.211.59.182] (13)Permission denied: /mnt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable"...

.htaccess?! e ki lo vuole?!
_________________
.:: `Starinthe` ::.


Last edited by Starinthe on Sun Feb 19, 2006 1:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Feb 19, 2006 1:28 pm    Post subject: Reply with quote

hai verificato i permessi della directory (e di tutte quelle al di sopra, fino alla radice)?
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun Feb 19, 2006 1:30 pm    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.

Mi sembra più un problema di apache che di gentoo... se mi sbaglio dimmelo che lo risposto
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Sun Feb 19, 2006 1:42 pm    Post subject: Reply with quote

Makkè mi da sempre errore: (13)Permission denied: /mnt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Comunque i permessi sono tutti su chmod 777 :?
_________________
.:: `Starinthe` ::.
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Feb 19, 2006 2:32 pm    Post subject: Reply with quote

no, aspetta... ti da un'errore nella lettura della diretory o dell'htaccess? sono cose ben diverse.

verifica che sia leggibile la directory. tutto il resto è secondario
Back to top
View user's profile Send private message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Sun Feb 19, 2006 2:54 pm    Post subject: Reply with quote

Sisi! è accessibilissima...
_________________
.:: `Starinthe` ::.
Back to top
View user's profile Send private message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Mon Feb 20, 2006 4:19 pm    Post subject: Reply with quote

Dato che non riesco a cambiare il DocumentRoot ho pensato di creare un collegamento nella cartella htdocs del tipo:
Code:

ln -s /mnt/HDEsterno HDEsterno

e ho notato che nella pagina del browser non compare il collegamento! :?
_________________
.:: `Starinthe` ::.
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Feb 20, 2006 4:28 pm    Post subject: Reply with quote

Starinthe wrote:
Dato che non riesco a cambiare il DocumentRoot ho pensato di creare un collegamento nella cartella htdocs del tipo

no, aspetta... la DocumentRoot l'hai cambiata eccome, il problema è un altro.

se vuoi esserne sicuro abilita gli handler server-statis e server-info (APACHE_OPTS="-D INFO")
Back to top
View user's profile Send private message
Starinthe
Apprentice
Apprentice


Joined: 22 Aug 2003
Posts: 192
Location: Brindisi

PostPosted: Mon Feb 20, 2006 4:33 pm    Post subject: Reply with quote

Sisi vero... Però sta di fatto che ora DocumentRoot punta su /mnt/HDEsterno però continua a darmi

Code:

Forbidden

You don't have permission to access / on this server.
Apache Server at 83.211.34.179 Port 80


e nel file di log:
Code:

slaawrath localhost # cat /var/log/apache2/error_log

[Mon Feb 20 17:35:44 2006] [crit] [client 83.211.59.182] (13)Permission denied: /mnt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Feb 20 17:35:44 2006] [crit] [client 83.211.59.182] (13)Permission denied: /mnt/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
slaawrath localhost #

_________________
.:: `Starinthe` ::.
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Feb 20, 2006 4:51 pm    Post subject: Reply with quote

ma appunto... è un problema dell'htaccess, non della DocumentRoot
controlla nella configurazione di apache, e soprattutto nella documentazione sul sito. c'è una sezione intera dedicata all'htaccess
Back to top
View user's profile Send private message
power83
l33t
l33t


Joined: 28 Nov 2004
Posts: 638

PostPosted: Tue Feb 21, 2006 10:21 am    Post subject: Reply with quote

k.gothmod.....penso hce l'abbia capito che il problema e' htaccess.....ma vorrebbe sapere hce e' sto coso e xke' salta fuori sto problema :roll:
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Tue Feb 21, 2006 10:41 am    Post subject: Reply with quote

power83 wrote:
k.gothmod.....penso hce l'abbia capito che il problema e' htaccess.....ma vorrebbe sapere hce e' sto coso e xke' salta fuori sto problema :roll:

Starinthe wrote:
Dato che non riesco a cambiare il DocumentRoot ho pensato di creare un collegamento nella cartella htdocs del tipo:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum