Foros del Web » Administración de Sistemas » Apache »

No funciona virtual host

Estas en el tema de No funciona virtual host en el foro de Apache en Foros del Web. hola tengo un virtual host pero no me funciona... haber si me podeis ayudar pliss.. me envia a la carpeta www pero no ala del ...
  #1 (permalink)  
Antiguo 20/06/2011, 12:44
 
Fecha de Ingreso: mayo-2011
Ubicación: Almeria (España)
Mensajes: 51
Antigüedad: 12 años, 11 meses
Puntos: 3
Pregunta No funciona virtual host

hola tengo un virtual host pero no me funciona... haber si me podeis ayudar pliss..
me envia a la carpeta www pero no ala del virtual host porfavor ayudenme


Configuracion Apache

Código:
#
ServerRoot "c:/wamp/apache2"

Listen 8080

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module "c:/wamp/php/php5apache2_2.dll"



ServerAdmin webmaster@localhost




DocumentRoot "C:/wamp/www"


<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>



<Directory "C:/wamp/www">

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>


<IfModule dir_module>
    DirectoryIndex index.php index.php3 index.html index.htm index.html.var
</IfModule>


<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ../logs/apache_error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog ../logs/access.log common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog logs/access.log combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://localhost/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
 ScriptAlias /cgi-bin/ "c:/wamp/Apache2/cgi-bin/"

</IfModule>

#
# "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "c:/wamp/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>




DefaultType text/plain

<IfModule mime_module>

    TypesConfig conf/mime.types


    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

</IfModule>



NameVirtualHost *:8080

#Blog
<VirtualHost *:8080>
ServerAdmin [email protected]
ServerName 3dprog-blog.dyndns.org
DocumentRoot "/wwww/3dprogblog"
</VirtualHost> 




<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


Include "c:/wamp/apache2/conf/alias/phpmyadmin.conf"
Include "c:/wamp/apache2/conf/alias/sqlitemanager.conf"

Aqui os dejo el virtual host

Código:
NameVirtualHost *:8080

#Blog
<VirtualHost *:8080>
ServerAdmin [email protected]
ServerName 3dprog-blog.dyndns.org
DocumentRoot "/wwww/3dprogblog"
</VirtualHost>

Espero que peduan ayudarme.

Un saludo
  #2 (permalink)  
Antiguo 21/06/2011, 02:34
 
Fecha de Ingreso: junio-2011
Mensajes: 5
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: No funciona virtual host

Buenas, en primer lugar has publicado tanta informacion irrelevante y "confidencial" por tu parte, que aunque luego pongas [email protected] nos da lo mismo jajaja.

Cuida con publicar rutas.

Que version de apache tienes? cual es el objetivo, restringir el acceso a / o a un directorio en particular?

Saludos!
  #3 (permalink)  
Antiguo 21/06/2011, 08:04
 
Fecha de Ingreso: mayo-2011
Ubicación: Almeria (España)
Mensajes: 51
Antigüedad: 12 años, 11 meses
Puntos: 3
Respuesta: No funciona virtual host

Cita:
Iniciado por tmeto Ver Mensaje
Buenas, en primer lugar has publicado tanta informacion irrelevante y "confidencial" por tu parte, que aunque luego pongas [email protected] nos da lo mismo jajaja.

Cuida con publicar rutas.

Que version de apache tienes? cual es el objetivo, restringir el acceso a / o a un directorio en particular?

Saludos!
Hola kiero que mis amigos al poner la direcion web 3dprog-blog.dyndns.org ballan hacia el directorio WWW/3dprogblog/ pero por virtual host porke despues añadire mas webs
  #4 (permalink)  
Antiguo 24/06/2011, 16:05
 
Fecha de Ingreso: abril-2006
Mensajes: 1.128
Antigüedad: 18 años
Puntos: 33
Respuesta: No funciona virtual host

Probablemente tienes problemas con la redireccion.
Revisa los logs del cortafuego.
Saludos
Franco

Última edición por franco190453; 26/06/2011 a las 11:38
  #5 (permalink)  
Antiguo 10/11/2015, 21:17
 
Fecha de Ingreso: octubre-2007
Mensajes: 29
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: No funciona virtual host

Yo tengo el mismo problema, desactive avast y el problema persiste, uso windows 10.

==============
httpd.conf

Listen 8080

ServerName localhost:8080

DocumentRoot "c:/wamp/www/"

# Virtual hosts
Include conf/extra/httpd-vhosts.conf



==============
httpd-vhosts.conf

NameVirtualHost 127.0.0.1:8080

<Directory "C:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

<Directory "C:/virtualhost">
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
</Directory>

<Directory "C:/wamp/www/LicenciamientoRD">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<VirtualHost *:8080>
DocumentRoot "C:/wamp/www"
ServerName localhost
</VirtualHost>


<VirtualHost *:8080>
ServerName LicenciamientoRD
ServerAlias LicenciamientoRD
DocumentRoot "C:/wamp/www/LicenciamientoRD"
ErrorLog "C:/wamp/www/LicenciamientoRD/logs/LicenciamientoRD.log"
CustomLog "C:/wamp/www/LicenciamientoRD/logs/LicenciamientoRD-access.log" common
</VirtualHost>

<VirtualHost *:8080>
DocumentRoot "C:/virtualhost"
ServerName misitio.local
ErrorLog "C:/virtualhost/logs/LicenciamientoRD.log"
CustomLog "C:/virtualhost/logs/LicenciamientoRD-access.log"
</VirtualHost>




==============
C:\WINDOWS\system32\drivers\etc\hosts

127.0.0.1:8080 localhost
::1 localhost
127.0.0.1:8080 LicenciamientoRD
127.0.0.1 misitio.local
  #6 (permalink)  
Antiguo 11/11/2015, 04:51
Avatar de franciscomarin  
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 9 meses
Puntos: 327
Respuesta: No funciona virtual host

bgva2005, es un hilo de 2010. Lo mejor es que abras tu un nuevo hilo con tu problema.

Etiquetas: virtual, hosts
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:47.