homepage Welcome to WebmasterWorld Guest from 54.234.228.64
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
serving static pages via apache server
JazzBud




msg:4605512
 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]

 

phranque




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

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.

JazzBud




msg:4605700
 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.

lucy24




msg:4605719
 10:40 am on Aug 29, 2013 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved