GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Jan-2005, 08:10
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Apache2 won't read CSS on local server


I am running Apache 2.0.50 on Windows XP (SP2). It won't interpret the CSS or display images on anything that is accessed locally. Everything is lined up along the left side of the page. There are image marker present.

Anyone know where I could start looking to solve this?
  #2  
Old 14-Jan-2005, 09:03
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
have you checked if the files actually exist?

Apache doesn't parse css or images, your browser does that.

You can check if Apache can find the files by visiting the urls to the css/image, if it returns a 404 Not Found error you know the problem and should make sure the css/images are in correct directory and point to it.

you can also check your Apache error log (error.log) and see if there are 404 Not Found errors in there, or other errors, like Forbidden
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 14-Jan-2005, 23:18
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road
The files are there and they coded correctly. However, you did help me find the problem. When I put in URLs like you suggested I got a 403 error, access forbidden. I am logged in as administrator so I should not be blocked from anything. What would cause this?

The error.log says:
[Fri Jan 14 17:47:06 2005] [notice] Child 1832: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Fri Jan 14 17:47:06 2005] [notice] Parent: Received restart signal -- Restarting the server.
Warning: DocumentRoot [/www/index.html] does not exist
[Fri Jan 14 17:47:07 2005] [notice] Parent: Created child process 3544
Warning: DocumentRoot [/www/index.html] does not exist
the start mutex
[Fri Jan 14 17:47:08 2005] [notice] Child 3544: Child process is running
[Fri Jan 14 17:47:08 2005] [notice] Child 3544: Acquired the start mutex.
[Fri Jan 14 17:47:08 2005] [notice] Child 3544: Starting 250 worker threads.
[Fri Jan 14 17:47:08 2005] [notice] Child 1832: Waiting for 250 worker threads to exit.
[Fri Jan 14 17:47:19 2005] [notice] Child 1832: All worker threads have exited.
[Fri Jan 14 17:47:19 2005] [notice] Child 1832: Child process is exiting

It says "DocumentRoot [/www/index.html] does not exist". I checked. It does exist. However, the httpd.conf has the DocumentRoot as, C:/Apache Group/Apache2/htdocs". Shouldn't it be reading from there and not www. So, I'm confused.
  #4  
Old 15-Jan-2005, 06:10
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road
Problem solved!

I had the DocumentRoot labeled wrong in the VirtualHost. I had it /www/index.html and it should have been just /www/.

Thanks for the help.
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Things to Avoid in C/C++ -- gets() , Part 1 WaltP C Programming Language 5 21-Jun-2007 13:13
Problem Runnig Perl under Apache2 in Windows 2000 Server mig2000 Apache Web Server Forum 2 25-Oct-2004 07:20
how to post MYSQL data to web server bearky Web Hosting Forum 6 13-Jul-2004 06:08
access local webserver from the local host calisro Apache Web Server Forum 1 10-May-2004 09:53
· Windows 2003 Server Reseller Special: Unlimited Domains/2 GB Space/for $19.99 contactsonia Web Hosting Advertisements & Offers 0 09-Jan-2004 06:46

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:06.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.