[LUG.ro] Problemas con VirtualHost en Apache2

Sebastián A. La Spina lugro@lugro.org.ar
Mon, 5 Feb 2007 10:23:26 -0300


Probaste de decirle en que puerto escuchar a los VHs¿?

NameVirtualHost 127.0.0.1:80    <----

 <VirtualHost 127.0.0.1:80>   <----

>ServerAdmin webmaster@localhost
> ServerName sitio2
> DocumentRoot /home/lichi/Projects/sitio2/
> <Directory />
....

Saludos!.-

--------------------------------------------------
Sebastián Augusto La Spina
skype: sebastian.augusto
registered linux user:147409 - www.counter.li.org


----- Original Message ----- 
From: "Lisandro" <lichig@gmail.com>
To: "lugro" <lugro@lugro.org.ar>
Sent: Sunday, February 04, 2007 8:25 PM
Subject: [LUG.ro] Problemas con VirtualHost en Apache2


> No consigo hacer funcionar los Hosts virtuales en Apache 2.
> Cada vez que lo reinicio me tira el siguiente warning:
> --
> [warn] NameVirtualHost 127.0.0.1:0 has no VirtualHosts
> --
>
> Detallo lo que hice:
> 1) Hice una copia de /etc/apache2/sites-availables/default a sitio2
> 2) Cree un enlace simbolico dentro ../sites-enables/ que apunta sitio2
> 3) modifique sitio2 especificando el DocumentRoot y el ServerName
> para este host virtual.
>
> Mas allá de tirar ese warning el servidor funciona bien... pero no consigo
> hacer andar el nuevo host virtual creado (es decir ingresando el
> ServerName especificado desde mi broser).
>
> Este es el contenido de /etc/apache2/sites-availables/default
> --------
> NameVirtualHost 127.0.0.1
> <VirtualHost 127.0.0.1>
> ServerAdmin webmaster@localhost
> ServerName localhost
> DocumentRoot /home/lichi/Projects/www/
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> </Directory>
> <Directory /home/lichi/Projects/www/>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> # Uncomment this directive is you want to see apache2's
> # default start page (in /apache2-default) when you go to /
> #RedirectMatch ^/$ /apache2-default/
> </Directory>
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> <Directory "/usr/lib/cgi-bin">
> AllowOverride None
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
> ServerSignature On
>
>    Alias /doc/ "/usr/share/doc/"
>    <Directory "/usr/share/doc/">
>        Options Indexes MultiViews FollowSymLinks
>        AllowOverride None
>        Order deny,allow
>        Deny from all
>        Allow from 127.0.0.0/255.0.0.0 ::1/128
>    </Directory>
>
> </VirtualHost>
> --------
>
>
>
>
>
> Este es el contenido de /etc/apache2/sites-availables/sitio2:
> -------
> NameVirtualHost 127.0.0.1
> <VirtualHost 127.0.0.1>
> ServerAdmin webmaster@localhost
> ServerName sitio2
> DocumentRoot /home/lichi/Projects/sitio2/
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> </Directory>
> <Directory /home/lichi/Projects/sitio2/>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> # Uncomment this directive is you want to see apache2's
> # default start page (in /apache2-default) when you go to /
> #RedirectMatch ^/$ /apache2-default/
> </Directory>
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> <Directory "/usr/lib/cgi-bin">
> AllowOverride None
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
> ServerSignature On
>
>    Alias /doc/ "/usr/share/doc/"
>    <Directory "/usr/share/doc/">
>        Options Indexes MultiViews FollowSymLinks
>        AllowOverride None
>        Order deny,allow
>        Deny from all
>        Allow from 127.0.0.0/255.0.0.0 ::1/128
>    </Directory>
>
> </VirtualHost>
> --
>
> Mi versión de apache:
> Apache/2.0.55 (Ubuntu) PHP/4.4.2-1.1 Server at localhost Port 80
>
> ¿Alguién tiene idea de que puede estar pasando?...
> Muchas gracias...
>
> Lisandro.
>
> _______________________________________________
> Lugro mailing list
> Lugro@lugro.org.ar
> http://www.lugro.org.ar/mailman/listinfo/lugro