Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 vhosts Forbidden
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)
View previous topic :: View next topic  
Author Message
capitanjackal
n00b
n00b


Joined: 26 Aug 2003
Posts: 69
Location: Quarata (CALIFORNIA)

PostPosted: Wed Jun 23, 2004 10:40 am    Post subject: Apache2 vhosts Forbidden Reply with quote

Ciao a tutti

ho provato ad usare i vhosts, ma quando accedo con il browser ottengo Forbidden (errore 403).

Ho cercato nel forum e ho trovato molti thread su questo argomento, ma nessuno con una soluzione ben precisa.

Da quello che ho capito si deve aggiungere:

<Directory />
Options -All -Multiviews +Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>

a /etc/apache2/conf/apache2.conf.

questo e' il primo virtualhost che ho in vhosts.conf:
<VirtualHost x.x.x.x:80>
NameVirtualHost ip.pubblico
ServerAdmin x@x.net
DocumentRoot /home/capitano/sito
ServerName x.x.net
ErrorLog /var/log/apache2/x.x.net-error_log
CustomLog /var/log/apache2/x.x.net-access_log common
</VirtualHost>


ho provato a anche a dare un chmod 777 -R /home/capitano/sito, e continuo ad avere sempre lo stesso prob, quindi non e' un problema di permessi del filesystem.

Avete qualche idea ?

grazie infinite

Giacomo
_________________
Meglio una Fiat 500 con 500 watts che una Fiat Punto con punti watts!
PS: ho comprato la punto! sono un l00s3r
Back to top
View user's profile Send private message
Yoghi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 120
Location: Bologna - italy

PostPosted: Thu Jun 24, 2004 11:40 pm    Post subject: Reply with quote

Si anche ho avuto lo stesso problema
Soluzione:
dentro la descrizione del virtual host devi mettere le info sulla visibilita altrimenti di default e Allow from any e AllowOverride None
Es:
Code:

<VirtualHost x.x.x.x:80>
NameVirtualHost ip.pubblico
ServerAdmin x@x.net
DocumentRoot /home/capitano/sito
<Directory />
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName x.x.net
ErrorLog /var/log/apache2/x.x.net-error_log
CustomLog /var/log/apache2/x.x.net-access_log common
</VirtualHost>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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