View previous topic :: View next topic |
Author |
Message |
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Sun Feb 19, 2006 12:55 pm Post subject: Apache 2.0.55-r1 e DocumentRoot |
|
|
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 |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Feb 19, 2006 12:58 pm Post subject: Re: Apache 2.0.55-r1 e DocumentRoot |
|
|
controlla nelle definizioni dei VirtualHosts:
/etc/apache2/vhosts.d/00_default_vhost.conf |
|
Back to top |
|
|
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Sun Feb 19, 2006 1:05 pm Post subject: |
|
|
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 |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Feb 19, 2006 1:28 pm Post subject: |
|
|
hai verificato i permessi della directory (e di tutte quelle al di sopra, fino alla radice)? |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Sun Feb 19, 2006 1:30 pm Post subject: |
|
|
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 |
|
|
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Sun Feb 19, 2006 1:42 pm Post subject: |
|
|
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 |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Feb 19, 2006 2:32 pm Post subject: |
|
|
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 |
|
|
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Sun Feb 19, 2006 2:54 pm Post subject: |
|
|
Sisi! è accessibilissima... _________________ .:: `Starinthe` ::. |
|
Back to top |
|
|
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Mon Feb 20, 2006 4:19 pm Post subject: |
|
|
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 |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Mon Feb 20, 2006 4:28 pm Post subject: |
|
|
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 |
|
|
Starinthe Apprentice
Joined: 22 Aug 2003 Posts: 192 Location: Brindisi
|
Posted: Mon Feb 20, 2006 4:33 pm Post subject: |
|
|
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 |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Mon Feb 20, 2006 4:51 pm Post subject: |
|
|
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 |
|
|
power83 l33t
Joined: 28 Nov 2004 Posts: 638
|
Posted: Tue Feb 21, 2006 10:21 am Post subject: |
|
|
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 |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Tue Feb 21, 2006 10:41 am Post subject: |
|
|
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 |
Starinthe wrote: | Dato che non riesco a cambiare il DocumentRoot ho pensato di creare un collegamento nella cartella htdocs del tipo: |
|
|
Back to top |
|
|
|