Apache File Not Found Issues

Discussion in 'Server Operation' started by punk0mi, Aug 20, 2010.

  1. punk0mi

    punk0mi New Member

    I am stumped a bit. Keep getting "File does not exist" errors in Apache for no apparent reason.

    Assume the /var/www is the root of the web.

    Assume there are sub-directories in the root called 'scripts', 'programA', and 'programB'.

    Assume a file called "programA.html" in the 'programA' directory that loads a CSS file from the root (../style.css), and loads some javascript files from the '../scripts/' directory (../scripts/javascript.js).

    I navigate to //localhost/programA/programA.html and the page loads fine and javascript is working. Even cleared the cache, and still works flawlessly.

    All files are in the correct location, accounted for, and have even been check for case sensitive operation. The /var/www has been set to 755, as have all the subfolders within it. Like I said, it appears to work correctly.

    However, if i check the apache error log i see:

    Code:
    [Fri Aug 20 10:49:37 2010] [error] [client 192.168.1.99] File does not exist: /var/www/programA/scripts, referer: [url]http://localhost/programA/programA.html[/url]
    For each time I have loaded that page.

    My apache conf files are stock, no changes. My sites file looks like this:

    Code:
    <VirtualHost *:80>
            ServerAdmin webmaster@localhost
    
            DocumentRoot /var/www
            <Directory />
                    Order deny,allow
                    Deny from all
            </Directory>
            <Directory /var/www>
                    Options Indexes FollowSymLinks
                    AllowOverride all
                    Order allow,deny
                    allow from all
            </Directory>
    
            ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            <Directory "/usr/lib/cgi-bin">
                    AllowOverride None
                    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                    Order allow,deny
                    Allow from all
            </Directory>
    
            ErrorLog /var/log/apache2/error.log
    
            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn
    
            CustomLog /var/log/apache2/access.log combined
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    </VirtualHost>
    I just cannot explain this...figured I would post to see what any of you think.
     
  2. punk0mi

    punk0mi New Member

    ...found the issue to be a shoddy javascript file.
     

Share This Page