Page 1 of 1

virtual hosts

PostPosted: 01. March 2007 11:33
by dafne
Hi
I use xampp standalone, I try to set virtual directory for testing offline website but virtual directory doesn't work.

only if I write in httpd-vhosts.conf 1 virtual directory it works on http:\\localhost
Can you help me?

This is what I write in httpd-vhosts.conf:
==================
NameVirtualHost *:80

<VirtualHost *:80>
ServerName local.webtest
DocumentRoot "O:/webtest"
<Directory "O:/webtest">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

=======================

website is visible offline at
http:\\localhost
but not at
http:\\local.webtest

PostPosted: 01. March 2007 15:22
by Wiedmann
but not at http:\\local.webtest

Why not?
--> error message

PostPosted: 01. March 2007 22:07
by WorldDrknss
you need to add local.webtest to your windows hosts file.
C:\WINDOWS\system32\drivers\etc\hosts

example:
Code: Select all
# 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       local.webtest

PostPosted: 02. March 2007 10:09
by dafne
thanks for the answers
I found the problem:
it was a disabled windows service, client dns
I have enabled and now xampp goes well.
bye