Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache path under win 32? Virtual Hosts...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am runing Apache on a WIN2k system and I cant get the pages to display for the sites I set up as a virtual host.

I put in the address " and apache displays all my folders with the websites inside them. Am I puting the document root in wrong?

<VirtualHost 10.1.2.3>
DocumentRoot /htdocs/nothing
ServerName ...
</VirtualHost>
 
The URL you hit was &quot; and that the ServerName of the virtual host is &quot;
What happens when you point your web browser to &quot; ______________________________________________________________________
Did you know?
The quality of our answers is directly proportional to the number of stars you vote?
 
This is how my VirtualHost settings are

<VirtualHost 10.1.1.9>
DocumentRoot /htdocs/Dodger
ServerName ...
</VirtualHost>

When I got to I get the Index of the apache directory. And I dont get the index.html of the dodger folder for
Does that clarify it some?
 
Here's a dumb question. Do you have an index in each DocumentRoot such as index.html or index.php? The DocumentRoot MUST be where your webpages are and if you don't use index.* you will need to define it on the line where the rest of the index names are defined.

 
You need to have created your index page; you need the index.html page that you intend to view in the root directory of the domain; you need your httpd.conf file to point the domain to that actual root directory; and you need the httpd.conf file to define the name of your index file, for instance:

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.htm index.html default.htm
</IfModule>

This allows you to have domains which will open to files named index.htm, index.html, or default.htm

If you do all of these things, it should work. If you edit your httpd.conf, make sure you Restart Apache before verifying that it works. Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top