Page 1 of 1

Vitural Hosts are not found...

PostPosted: 07. April 2008 21:19
by systems10
New Clean installation all went ok, even added wordpress and it worked fine too... Now want to add named Virtual Hosts and they do not present the index.html I have created in each of their document roots.

What does comeback is (lc.djkstudios.com) returns/rewrites on the address bar lc.djkstudios.com/xampp and the xampp utilities/configuration page.. ':roll:' (which means it cant find lc.djkstudios.com... i think)


I am at a loss, have tried most everthin I can think of from the posts I have read... Attached are my files,
any help would be appreciated...

Output of apache -S

E:\xampp\apache\bin>apache -S
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
[Mon Apr 07 15:21:17 2008] [warn] _default_ VirtualHost overlap on port 80, the
first has precedence
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 lc.djkstudios.com (E:/xampp/apache/conf/extra/httpd-vhost
s.conf:66)
*:80 lc.lkphotography.us (E:/xampp/apache/conf/extra/httpd-vho
sts.conf:90)
*:80 lc.loonlakechalet.com (E:/xampp/apache/conf/extra/httpd-v
hosts.conf:112)
*:80 lc.DanePoetry.com (E:/xampp/apache/conf/extra/httpd-vhost
s.conf:134)
*:80 lc.DavidKuttler.com (E:/xampp/apache/conf/extra/httpd-vho
sts.conf:157)
*:80 lc.healinghandsholisticbodywork.com (E:/xampp/apache/conf
/extra/httpd-vhosts.conf:179)
*:80 lc.kuttleronline.com (E:/xampp/apache/conf/extra/httpd-vh
osts.conf:201)
_default_:443 localhost (E:/xampp/apache/conf/extra/httpd-ssl.conf:74)
Syntax OK

Virtual Hosts file (only two examples included all are the same)

<VirtualHost *:80>
ServerName localhost
DocumentRoot "E:/xampp/htdocs"
CustomLog logs/localhost.log combined
ErrorLog logs/localhost.error.log
</Virtualhost>

<VirtualHost *:80>
ServerName lc.djkstudios.com
ServerAlias lc.djkstudios.com
DocumentRoot "E:/xampp/htdocs/Kuttlers-Sites/djkStudios/web"

<Directory />
HostnameLookups On
Options Indexes FollowSymLinks MultiViews
IndexOptions FancyIndexing
DirectoryIndex /index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml
AllowOverride all
Order allow,deny
Allow from all
</Directory>
CustomLog logs/lc.djkstudios.com.access.log combined
ErrorLog logs/lc.djkstudios.com.error.log
# Security addition if needed
# AuthUserFile /var/www/www.foo.com/.htpasswd
# AuthType Basic
# AuthName "Authorised Users Only"
# Require valid-user

</Virtualhost>

<VirtualHost *:80>
ServerName lc.lkphotography.us
DocumentRoot "E:/xampp/htdocs/Kuttlers-Sites/lkphotography/web"
<Directory />
HostnameLookups On
Options Indexes FollowSymLinks MultiViews
IndexOptions FancyIndexing
DirectoryIndex /index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# Security addition if needed
# AuthUserFile /var/www/www.foo.com/.htpasswd
# AuthType Basic
# AuthName "Authorised Users Only"
# Require valid-user

CustomLog logs/lc.lkphotography.us.access.log combined
ErrorLog logs/lc.lkphotography.us.error.log
</Virtualhost>

http.conf - Removed comments to make it shorter in this post

ThreadsPerChild 250
MaxRequestsPerChild 0

ServerRoot "E:/xampp/apache"

Listen 80

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 authnz_ldap_module modules/mod_authnz_ldap.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 # don't load because of mod_autoindex_color.so
#LoadModule bucketeer_module modules/mod_bucketeer.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule charset_lite_module modules/mod_charset_lite.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 dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.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 ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.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 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 version_module modules/mod_version.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule ssl_module modules/mod_ssl.so

LoadModule autoindex_color_module modules/mod_autoindex_color.so
#LoadModule mysql_auth_module modules/mod_auth_mysql.so
#LoadModule auth_remote_module modules/mod_auth_remote.so
#LoadModule sspi_auth_module modules/mod_auth_sspi.so
#LoadModule log_sql_module modules/mod_log_sql.so
#LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
#<IfModule ssl_module>
# LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
#</IfModule>
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule xmlns_module modules/mod_xmlns.so
#LoadModule proxy_xml_module modules/mod_proxy_xml.so
#LoadModule bw_module modules/mod_bw.so

ServerAdmin kuttler@localhost

ServerName localhost:80

DocumentRoot "E:/xampp/htdocs"

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

<Directory "E:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI MultiViews

AllowOverride All

Order allow,deny
Allow from all

</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>

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

ErrorLog logs/error.log

LogLevel warn

<IfModule log_config_module>
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>

CustomLog logs/access.log common

</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "E:/xampp/cgi-bin/"

</IfModule>

<Directory "E:/xampp/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
AddHandler cgi-script .cgi

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>

EnableMMAP off
EnableSendfile off

Include conf/extra/httpd-xampp.conf

# Server-pool management (MPM specific)
# Include conf/extra/httpd-mpm.conf

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

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

# Local access to the Apache HTTP Server Manual
Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

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

Include conf/extra/mod_jk.conf

Hosts File
C:\WINDOWS\system32\drivers\etc>more hosts
# Copyright (c) 1993-1999 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


127.0.0.1 localhost

127.0.0.1 lc.djkstudios.com # my personal site
127.0.0.1 lc.lkphotography.us # my company's site

PLEASE HELP......

PostPosted: 07. April 2008 21:39
by systems10
Found the problem... only had to post the question to find it :P

In the Virtual Hosts configuration
NameVirtualHost was commented..... arg......

PostPosted: 19. April 2008 04:06
by Johnthe3rd
I just wanted to say thanks for posting this, I had everything except editing the hosts C:\WINDOWS\system32\drivers\etc\hosts and I couldnt figure out why it wasn't working.. at least until I found this one.

Thanks for the post!