Discussione:
problema apache name virtual host
(troppo vecchio per rispondere)
sicuro
2008-09-04 17:50:34 UTC
Permalink
ho modificato il file httpd-vhosts.conf aggiungendo i vari virtualhost.
Il problema è che poi apache non riesce ad avviarsi (mi esce il meggaggio
BUSY)

dove sbaglio?
Cordiali saluti.
S.
Davide Bianchi
2008-09-04 18:39:53 UTC
Permalink
Post by sicuro
ho modificato il file httpd-vhosts.conf aggiungendo i vari virtualhost.
Il problema è che poi apache non riesce ad avviarsi (mi esce il meggaggio
BUSY)
dove sbaglio?
Difficile a dirsi, posta il tuo file di configurazione e vediamo. Che ti
dice apachectl configtest? Come lo 'riavvii' apache?

Davide
--
Some Windows were made to be broken.
sicuro
2008-09-04 19:59:34 UTC
Permalink
Post by Davide Bianchi
Difficile a dirsi, posta il tuo file di configurazione e vediamo.
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
############# HDAUDIO.COM ############
#

#
#
#
#
<Virtualhost hdaudio.com:80> # primary domain name
ServerAdmin ***@hdaudio.com # webmasters email address
DocumentRoot /www/docs/engine/ # root for your 'www' content
ServerName hdaudio.com # your full domain name
ServerAlias www.hdaudio.com # the 'www' virtual host
ErrorLog c:\www\error_log # error log file
TransferLog c:\www\access_log # access log file
</Virtualhost>





Che ti
Post by Davide Bianchi
dice apachectl configtest? Come lo 'riavvii' apache?
XAMPP stop e start


grazie in anticipo.
S.
Davide Bianchi
2008-09-05 06:39:49 UTC
Permalink
Post by sicuro
Post by Davide Bianchi
Difficile a dirsi, posta il tuo file di configurazione e vediamo.
# Use name-based virtual hosting.
#
##NameVirtualHost *:80
#
<Virtualhost hdaudio.com:80> # primary domain name
DocumentRoot /www/docs/engine/ # root for your 'www' content
ServerName hdaudio.com # your full domain name
ServerAlias www.hdaudio.com # the 'www' virtual host
ErrorLog c:\www\error_log # error log file
TransferLog c:\www\access_log # access log file
</Virtualhost>
Se 'NameVirtualHost' e' commentato, i vhost non funzionano.
De-commentalo. Per altro, se hai UN SOLO VHost, non e' che ti serva a
molto. Nota che 'NameVirtualHost' deve riportate la stessa dicitura che
hai nei VirtualHost, quindi se non ti interessa 'attaccare' Apache ad un
solo IP, lascia NameVirtualHost *:80 e metti '<VirtualHost *:80>'.
Post by sicuro
Post by Davide Bianchi
dice apachectl configtest? Come lo 'riavvii' apache?
XAMPP stop e start
Brau, e che ti dice apachectl configtest?

Davide
--
"If you do things right, people won't be sure you've done anything at
all." - Futurama
Loading...