Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2011, 07:07
Avatar de Rankxerox1984
Rankxerox1984
 
Fecha de Ingreso: septiembre-2010
Mensajes: 253
Antigüedad: 13 años, 8 meses
Puntos: 4
Nuevo en el ruedo (Configurando virtualhost)

Hola a todos/as:

Buenos días. Estoy intentando configurar mi servidor Apache 2.2.21 de XAMPP 1.7.7 y estoy hecho un lio. Hasta ahora he conseguido editar (siemrpe en Notepad ++) el httpd-vhosts .conf de Apache sin perder la entrada a XAMPP (al principio la perdía) cuando edito el hosts de Windows (system32/drivers/etc/hosts.txt) y trato de grabarlo recibo un mensaje que dice:
"Please check wether if this file is opened in another program"
obligándome a grabarlo como txt en el escritorio para llevarlo después a su ubicación correcta comentando el original.
tengo definido un path nuevo para los proyectos en:
C:/sitios-web/
y tengo un fichero index.html en un subdirectorio que se llama pruebas.
Cuando llamo en el explorador a http://pruebas/index.hmtl
me lleva a un sitio web de búsqueda de dominios para que compre el nombre. NO entiendo nada, estoy desorientado (disculpad la chapa)
a continuación pongo la configuración en Hosts de Windows 7:

Código:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
127.0.0.1 activate.adobe.com
127.0.0.1 practivate.adobe.com
127.0.0.1 pruebas
127.0.0.1 htdocs
y la configuración de httpd-vhosts:

Código:
NameVirtualHost 127.0.0.1:80

<VirtualHost htdocs:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/index"
    ServerName htdocs
    ServerAlias www.htdocs
    ErrorLog "logs/dummy-host.localhost-error.log"
    CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

<VirtualHost pruebas:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/sitios-web/pruebas"
    ServerName pruebas
    ServerAlias www.pruebas
    ErrorLog "logs/dummy-host2.localhost-error.log"
    CustomLog "logs/dummy-host2.localhost-access.log" combined
</VirtualHost>

A ver si alguien se apiada de mi y me puede indicar el/los fallos cometidos y ayudarme a corregirlos.
Quedaré eternamente agradecido,
__________________
J.
¿Dónde está la tecla ‘ANY’?
(H. Simpson)