0

I have uploaded 2 css files to my document root

small.css is less than 2KB and big.css is larger than 2KB.

The big.css does not get served no matter what I do.

The same goes for image files too.

All files are setup on a VPS. VHost Settings are as follows:

DocumentRoot "/path/to/my/public/"
ServerName myproject
   <Directory "/path/to/my/public/">
     Options Indexes FollowSymLinks
     AllowOverride all
   </Directory>
sodhancha
  • 435
  • 15
  • 31
  • Are you sure the file name matches 100%? Remember that Linux' filesystems are usually case sensitive. – Pekka Jul 30 '13 at 07:40
  • What does the Apache error log say? – Pekka Jul 30 '13 at 07:41
  • @Pekka웃 I have no error in my logs. When i move the document root one step up it works fine – sodhancha Jul 30 '13 at 07:55
  • A 404 error will always create an entry in the error log. It must be somewhere. – Pekka Jul 30 '13 at 08:05
  • 1
    you shud check the file permissions provided to big.css. also i think you got cache mgmt tool nginx running there.. check its log if available. – Mrigesh Raj Shrestha Jul 30 '13 at 08:26
  • @Pekka웃 There are no errors pertaining to big.css. Just checked my logs. If you run " curl -I http://sastobook.com/big.css " then status 200 OK should come. – sodhancha Jul 30 '13 at 08:34
  • 1
    @MrigeshRajShrestha makes a good point: it's Nginx complaining about the missing file. Weird. Can you check out Nginx's error logs? – Pekka Jul 30 '13 at 08:36
  • @MrigeshRajShrestha file permissions are ok. I think its a problem with nginx file path. The vhost configuration for apache needs a similar change in file path withing nginx configuration. Will check. Nginx log: open(): "/path/to/file/big.css" failed Apache Log: no error – sodhancha Jul 30 '13 at 08:49
  • soden @Pekka웃 gudluck ;) – Mrigesh Raj Shrestha Jul 30 '13 at 09:26

0 Answers0