I fixed the problem with Virtual Host

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

Postby Tom in AZ » 02. August 2005 20:55

I am having a issue here. I have made the following changes to my httpd.conf file, but when I go to a pull up a all of the sites the server asks me for a user name and password, why is that? I though that since it would not see the .htaccess file in the site1, site2, and site3 dirs it would not ask. I have to add ww2 in there because I re-routing my http to a non standard port of 10000, my my URLS actually come out to http://ww2.site1.com:10000

Thanks for the help guys, here is the end of my httpd.conf file.

Code: Select all
NameVirtualHost *:80

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot C:\apachefriends\xampp\htdocs

<VirtualHost *:80>
    ServerName site1.com
    ServerAlias www.site1.com ww2.site1.com
    DocumentRoot C:\apachefriends\xampp\sites\site1

<VirtualHost *:80>
    ServerName site2.com
    ServerAlias www.site2.com ww2.site2.com
    DocumentRoot C:\apachefriends\xampp\sites\site2

<VirtualHost *:80>
    ServerName site3.com
    ServerAlias www.site3.com ww2.site3.com
    DocumentRoot C:\apachefriends\xampp\sites\site3
#Win32DisableAcceptEx ON
Tom in AZ
Posts: 2
Joined: 02. August 2005 08:41


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests