![]() |
|
#1
|
||||
|
||||
Apache2 won't read CSS on local serverI 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
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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
|
||||
|
||||
|
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 GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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