RE: [PHP-ES] Re: DirectoryIndex en apache2.conf

From: Date: Wed, 11 Jan 2006 10:23:30 +0000
Subject: RE: [PHP-ES] Re: DirectoryIndex en apache2.conf
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-57242@lists.php.net to get a copy of this message
Me autorespondo. Finalmente la solución ha sido entrar al directorio /etc/apache2/sites-enabled y editar el archivo de default asi: NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place ######COMENTAMOS LA LÍNEA SGTE. PARA QUE NO REDIRECCIONE##################### # RedirectMatch ^/$ /apache2-default/ ############################################################################ # </Directory> Gracias. -----Mensaje original----- De: Gorka [mailto:gorkaphp@yahoo.es] Enviado el: miércoles, 11 de enero de 2006 10:36 Para: php-es@lists.php.net Asunto: RE: [PHP-ES] Re: DirectoryIndex en apache2.conf Hola. Siento el parón. (Enfermedad común en estas fechas). El caso es que tanto en apache2.conf como en httpd.conf he metido las líneas ... DocumentRoot /var/www DirectoryIndex index.html index.php index.cgi index.pl index.xhtml ... todavía cuando meto http://localhost/ me lleva a http://localhost/apache2-default en lugar de mi index.html ¿Alguien sabe cómo puedo rectificar esto? Gracias. -----Mensaje original----- De: Gustavo Narea [mailto:gustavo@php.net] Enviado el: viernes, 02 de diciembre de 2005 14:11 Para: php-es@lists.php.net Asunto: [PHP-ES] Re: DirectoryIndex en apache2.conf Hola. Gorka wrote: > Tengo la línea: > > DirectoryIndex index.html index.php ... > > Pero cuando meto http://localhost/ > > Me saca el apache2-default en lugar de mi index.html ¿El valor de DocumentRoot en el archivo httpd.conf es el correcto? ¿Apunta al directorio en el cual colocaste el archivo index.html? Saludos. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y moviles desde 1 centimo por minuto. http://es.voice.yahoo.com -- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y moviles desde 1 centimo por minuto. http://es.voice.yahoo.com

« previous php.general.es (#57242) next »