Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Can't get Apache 2.2 to display anything

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


berematkesawin at gmail

Nov 14, 2009, 10:59 AM

Post #1 of 3 (432 views)
Permalink
Can't get Apache 2.2 to display anything

I'm trying to get the webserver to display my index page. I placed
everything required in \htdocs\ inside the default Apache installation
directory. However, when I try localhost in my browser, all I see is "It
Works!". What could be the problem?
My httpd.conf: http://pastebin.com/m1eab135a
error.log: http://pastebin.com/m72374816

Thanks in advance.


aw at ice-sa

Nov 14, 2009, 11:14 AM

Post #2 of 3 (407 views)
Permalink
Re: Can't get Apache 2.2 to display anything [In reply to]

Trolle Yew wrote:
> I'm trying to get the webserver to display my index page. I placed
> everything required
meaning what ?

in \htdocs\ inside the default Apache installation
> directory. However, when I try localhost in my browser, all I see is "It
> Works!". What could be the problem?

what is the content of the file
"C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.html" ?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


Owen.Boyle at six-group

Nov 16, 2009, 12:18 AM

Post #3 of 3 (387 views)
Permalink
RE: Can't get Apache 2.2 to display anything [In reply to]

On line 177 you have

DocumentRoot "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs"

So apache will go there and look for "index.html". It appears this file
is the standard apache "It works!" file. So there is no problem with
apache, just with your understanding of how apache finds the content...

The usual thing that most people do is to make their own content
directory and put their own "index.html" in it. Then they point
"DocumentRoot to that directory. This saves mixing your content with
apache documentation stuff.

Eg;

DocumentRoot "C:/Users/fred/mysite"

then C:/Users/fred/mysite/index.html is your homepage.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.




________________________________

From: Trolle Yew [mailto:berematkesawin [at] gmail]
Sent: Saturday, November 14, 2009 7:59 PM
To: users [at] httpd
Subject: [users [at] http] Can't get Apache 2.2 to display anything


I'm trying to get the webserver to display my index page. I
placed everything required in \htdocs\ inside the default Apache
installation directory. However, when I try localhost in my browser, all
I see is "It Works!". What could be the problem?
My httpd.conf: http://pastebin.com/m1eab135a
error.log: http://pastebin.com/m72374816

Thanks in advance.

This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message.
The sender's company reserves the right to monitor all e-mail communications through their networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.