virtual hosts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

virtual hosts

Postby dafne » 01. March 2007 11:33

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


website is visible offline at
but not at
Posts: 2
Joined: 01. March 2007 11:23

Postby Wiedmann » 01. March 2007 15:22

but not at http:\\local.webtest

Why not?
--> error message
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby WorldDrknss » 01. March 2007 22:07

you need to add local.webtest to your windows hosts file.

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:
#          # source server
#              # x client host       localhost       local.webtest - XAMPP Tutorials & MORE!!!!
User avatar
Posts: 292
Joined: 17. September 2005 13:40

Postby dafne » 02. March 2007 10:09

thanks for the answers
I found the problem:
it was a disabled windows service, client dns
I have enabled and now xampp goes well.
Posts: 2
Joined: 01. March 2007 11:23

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests