Welcome to WebmasterWorld Guest from 54.90.119.59

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

serving static pages via apache server

     
6:28 pm on Aug 28, 2013 (gmt 0)

New User

joined:Aug 28, 2013
posts: 2
votes: 0


hi all,

I'm trying to run a basic example with apache-weblogic bridge. I have included weblogic module and the below code snippet in httpd.conf file,

LoadModule weblogic_module modules/mod_wl_22.so
<IfModule mod_weblogic.c>
WebLogicCluster localhost:7001,11.11.11.11:7003
MatchExpression /*
</IfModule>


when i hit http://localhost/console, wls console comes up fine. now I want to server some static pages,so i add a virtual host tag just below the above code snippet and it looks like,
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
</VirtualHost>

I have created a folder 'test' under htdocs and have placed a file test.html and when I try to access http://localhost/test/test.html, it shows a 404. Now please let me know how do i server a static page usin this set-up. other important directives;
[global directives]
ServerName localhost
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

[edited by: phranque at 11:02 pm (utc) on Aug 28, 2013]
[edit reason] unlinked urls [/edit]

11:04 pm on Aug 28, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11164
votes: 116


welcome to WebmasterWorld, JazzBud!


if you check your server error log file it should show the filepath of that missing file requested.
that might give you a hint where things went wrong.
8:48 am on Aug 29, 2013 (gmt 0)

New User

joined:Aug 28, 2013
posts: 2
votes: 0


Thanks for the response phranque.
But all I see in the access.log is,
127.0.0.1 -"GET /Test/TestOne.html HTTP/1.1" 404 1214
127.0.0.1 -"GET /index.html HTTP/1.1" 404 1214
and Nothing in error.log

If I get it right, the request is hitting the server but the page is not being served for some reasons.
I verified the path again and its perfectly fine.
10:40 am on Aug 29, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:14442
votes: 576


If there's no error log at all, you'll need to enable error logging. If the error log file exists but 404s aren't getting recorded, set the logging to a higher level. My impression was that 404 is level 1, but possibly not.