Welcome to WebmasterWorld Guest from 54.157.222.62

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)



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)

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



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)



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)

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



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.