Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Conf] Come si linka un sottodominio in apache2? [RISOLTO]
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
TeoBì
Apprentice
Apprentice


Joined: 31 May 2004
Posts: 150

PostPosted: Mon Jul 05, 2004 4:51 pm    Post subject: [Conf] Come si linka un sottodominio in apache2? [RISOLTO] Reply with quote

Ciao ragazzi,
dunque ho installato il server dns sulla mia rete locale, www.home.lan e fin qui tutto ok, poi ho creato un sottodomio cacti.home.lan e anche qui tutto ok; poi ho creato il virtual host in apache2 con le seguenti righe contenute nel file vhosts.conf di apache2:
Code:
################# Named VirtualHosts
NameVirtualHost cacti.home.lan
<VirtualHost 192.168.1.1>
ServerName Ade
ServerPath /var/www/localhost/htdocs/cacti
DocumentRoot /var/www/localhost/htdocs/cacti
</VirtualHost>
; il problema è che da quando ho aggiunto queste righe la pagina di www.home.lan è la stessa di cacti.home.lan; invece io voglio che www.home.lan punti da una parte e cacti.home.lan da un'altra parte dell'hdd. (premetto che se commetto le righe aggiunte al file vhost.conf la pagina di www.home.lan torna a puntarmi dove dovrebbe).

Grazie per l'aiuto a tutti :)


Last edited by TeoBì on Tue Jul 06, 2004 9:13 am; edited 1 time in total
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Mon Jul 05, 2004 11:56 pm    Post subject: Reply with quote

DocumentRoot /var/www/localhost/htdocs/cacti

Il trucco sta solo in questa dir, e' questa che devi modificare per ottenere una pagina differente.
Pero' se posti solo meta' della tua conf sara' ben difficile controllare approfonditamente ;)
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
TeoBì
Apprentice
Apprentice


Joined: 31 May 2004
Posts: 150

PostPosted: Tue Jul 06, 2004 9:12 am    Post subject: Reply with quote

Grazie mille per il consiglio :), Risolto.
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