-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yurkis Isaac Ortiz ® escribió: > Tengo creado un VirtualHost en apache pero cuando trato de abrirlo en un > navegador me da el siguiente error: > > You don't have permission to access / on this server. > > Que debo hacer para resolver el problema
Veamos, la siguiente linea esta ok? NameVirtualhost *:80 La definicion de un virtualhost debe ser algo asi: <VirtualHost *:80> ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/vhosts/xxxx/www ServerName xxxx ServerAlias xxxx <Directory /var/www/vhosts/xxxx/www> Options Indexes Multiviews FollowSymlinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Y en /var/www/vhosts/xxx/www debes tener un archivo index.html, index.php o lo que sea que tengas funcionando; prueba poniendo un archivo index.html en la raiz Web con lo siguiente: <h1>Funciona</h1> O si quieres probar con PHP: <?php phpinfo(); ?> - -- Rodrigo Fuentealba Concepción, Región del Bío-Bío, Chile -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkg8OUsACgkQoqmdUrqLMt16AwCdHyCQ+nv89xTV1FBfp1v5dzj1 vxEAn3H5uAlMg7FwABIWDEvQQJpeWis3 =+9HU -----END PGP SIGNATURE----- From [EMAIL PROTECTED] Tue May 27 12:50:57 2008 From: [EMAIL PROTECTED] ([EMAIL PROTECTED]) Date: Tue May 27 13:18:20 2008 Subject: Apache In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Problemas de permiso de archivo o directorio??? El día 27 de mayo de 2008 12:33, Aldrin Martoq <[EMAIL PROTECTED]> escribió: > On Tue, 2008-05-27 at 11:29 -0400, Yurkis Isaac Ortiz (R) wrote: > > Tengo creado un VirtualHost en apache pero cuando trato de abrirlo en un > navegador me da el siguiente error: > > You don't have permission to access / on this server. > > Que debo hacer para resolver el problema > > Revisar el log de apache, ahi encontraras la razon exacta. > > -- > Aldrin Martoq <[EMAIL PROTECTED]> > http://aldrinvideopodcast.podshow.com/ > > > From [EMAIL PROTECTED] Tue May 27 13:07:17 2008 From: [EMAIL PROTECTED] ([EMAIL PROTECTED]) Date: Tue May 27 13:31:38 2008 Subject: Apache In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> 2008/5/27 Rodrigo Fuentealba <[EMAIL PROTECTED]>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Yurkis Isaac Ortiz (R) escribió: > > Tengo creado un VirtualHost en apache pero cuando trato de abrirlo en un > navegador me da el siguiente error: > > > > You don't have permission to access / on this server. > > > > Que debo hacer para resolver el problema > > Veamos, la siguiente linea esta ok? > > NameVirtualhost *:80 > > La definicion de un virtualhost debe ser algo asi: > > <VirtualHost *:80> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /var/www/vhosts/xxxx/www > ServerName xxxx > ServerAlias xxxx > <Directory /var/www/vhosts/xxxx/www> > Options Indexes Multiviews FollowSymlinks > AllowOverride All > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > > Y en /var/www/vhosts/xxx/www debes tener un archivo index.html, > index.php o lo que sea que tengas funcionando; prueba poniendo un > archivo index.html en la raiz Web con lo siguiente: > > <h1>Funciona</h1> > > O si quieres probar con PHP: > > <?php phpinfo(); ?> Ese problema es por que quizas hiciste el virtualhost con la opciones en <Directory> sin indexacion ( indexes ) Prueba poniendo como dijo Rodirgo un index.html o index.php y ve si te sale, si no ya es problema de permisos. > > > - -- > Rodrigo Fuentealba > Concepción, Región del Bío-Bío, Chile > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkg8OUsACgkQoqmdUrqLMt16AwCdHyCQ+nv89xTV1FBfp1v5dzj1 > vxEAn3H5uAlMg7FwABIWDEvQQJpeWis3 > =+9HU > -----END PGP SIGNATURE----- > -- Andrés Esteban Ovalle Gahona (kill-9) Msn: [EMAIL PROTECTED] Ingenieria Ejecución Computación e Informática Web: http://aovalle.tuxserv.cl Movil: 09-5791839 Staff DebianChile.cl / Coordinador de Proyectos GDSOL Usuario Linux #456290 (counter.li.org) From [EMAIL PROTECTED] Tue May 27 13:59:51 2008 From: [EMAIL PROTECTED] (=?iso-8859-1?Q?Christian_Montero_Hern=E1ndez?=) Date: Tue May 27 13:59:58 2008 Subject: Apache Message-ID: <[EMAIL PROTECTED]> ----- Mensaje original ---- De: Yurkis Isaac Ortiz ® <[EMAIL PROTECTED]> Para: Lista de correo del Grupo de Usuarios de Software Libre en Cordoba <[EMAIL PROTECTED]> CC: Discusion de Linux en Castellano <linux@listas.inf.utfsm.cl> Enviado: martes, 27 de mayo, 2008 11:29:47 Asunto: Apache Tengo creado un VirtualHost en apache pero cuando trato de abrirlo en un navegador me da el siguiente error: You don't have permission to access / on this server. Que debo hacer para resolver el problema --------------------------------------------------------- Me sumo a las consultas, tienes SELINUX activo? si dieras mas información de tu VirtualHost sería mas facil ayudarte. Recuerdo que habia una guía por ahi de como hacer preguntas en los foros, aunque no estoy seguro si estaría en español... Christian Montero H. Red Hat Certified Engineer (RHCE) 805008759430301 ____________________________________________________________________________________ Yahoo! Deportes Beta ¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí http://deportes.yahoo.com