Re: Re: DirectoryIndex en apache2.conf
| From: | Jonathan Lara | Date: | Wed, 11 Jan 2006 18:01:19 +0000 |
| Subject: | Re: Re: DirectoryIndex en apache2.conf | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-57245@lists.php.net to get a copy of this message | ||
Ojo con este direcytiva que gteneralmente viene default en la instalacion de apache2 en algunas distros
a veces en una carpeta separada de la conf y con nombre welcome.conf creo
# RedirectMatch ^/$ /apache2-default/
Gorka wrote:
Me autorespondo. Finalmente la solución ha sido entrar al directorio /etc/apache2/sites-enabled y editar el archivo de default asi: NameVirtualHost * <VirtualHost *>-- Jonathan Lara jlara@transam.cl Desarrollo Will Telefonia S.A. 5720216ServerAdmin webmaster@localhostDocumentRoot /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 startpage# in /apache2-default/, but still have / go to the rightplace######COMENTAMOS LA LÍNEA SGTE. PARA QUE NOREDIRECCIONE##################### # 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