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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Localhost question

Status
Not open for further replies.

stalo

Programmer
Joined
May 1, 2001
Messages
35
Location
CY
Hi all

I am new to Apache and this is a college project so your help will be appreciated.

I have installed Apache and now whenever I write or the small web page I designed should be displayed. I have made some modifications to the configuration file which is tested correctly but I cannot see my web. This is what I wrote:

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.
# i changed the first three line of the following
<VirtualHost *:80>
ServerAdmin csavva@dits.mof.gov.cy
DocumentRoot "c:\My Family\index.html"
# ServerName ServerName localhost
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

My page start with index.html and is located at c:\My family folder.

Can someone help me please?

Thanks
Stalo
 
One problem is that this line :

DocumentRoot "c:\My Family\index.html"

should be :

DocumentRoot "c:\My Family"

You may, or may not, have problems with the spaces ...

--------------------------------------------------
Free Database Connection Pooling Software
 
OK, until this point the conf is without errors but still nothing. if i put on my browser it says it the page cannot be displayed. How do I make it to start with index.htm which is my starting page?
 
Do you have a line like this in your config?

DirectoryIndex index.html index.htm
 
stalo,

After making any changes to your httpd.conf, you should restart Apache so that it reloads the configuration.

If you have
DirectoryIndex index.html index.htm
and
DocumentRoot "c:\My Family"
in your httpd.conf and reloading the configuration doesn't work, then the issue is probably with the space in the directory name.

If you continue having issues, please post the test of the error message from your browser and Apache error log.

Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top