Directory doesn't exist... :( 404, cannot be found

Discussion in 'Install/Configuration' started by nix, Sep 3, 2009.

  1. nix

    nix New Member

    i'm totally new with litespeed, i used to use apache for web server before, yesterday i found articles about litespeed n decide to try it on my nix box.. i install it and running well. The problem is, when i make directory, for example directory FILE to put files to be download directly by user, but after mkdir and try to access it by broswer, but got nothing.. i just got 404, file not found. i try with several ways just like an example on context content, but still got 404, can you help me to solve this problem. i really want to use litespeed,
  2. auser

    auser Super Moderator

    did you make directory under document root?
    maybe unix/linux file permission issue.
    please paste the output of
    ls -l directory-you-create
  3. nix

    nix New Member

    i make FILE directory under Virtual host root directory..
    here is output for ls -l

    drwxr-xr-x 2 nobody nogroup 4096 2009-09-01 19:11 blocked
    -rw-r--r-- 1 nobody nogroup 195 2009-09-01 19:11 error404.html
    drwxr-xr-x 2 nobody nogroup 4096 2009-09-03 08:24 file <-----
    -rw-r--r-- 1 nobody nogroup 995 2009-09-02 01:01 index.html
    -rw-r--r-- 1 nobody nogroup 52 2009-09-01 19:11 phpinfo.php
    -rw-r--r-- 1 nobody nogroup 5382 2009-09-01 19:11 powered_by.gif
    drwxr-xr-x 2 nobody nogroup 4096 2009-09-01 19:11 protected
  4. auser

    auser Super Moderator

    this looks ok.

    then output of
    ls -l file
    ?
  5. nix

    nix New Member

    under file directory i make sample.txt, here the ls -l under file directory
    nix@gatotkaca:/opt/lsws/DEFAULT/html/file$ ls -l
    total 0
    -rw-r--r-- 1 nobody nogroup 0 2009-09-03 16:46 sample.txt

    but when try to accessing by URL, it just give an 404 error messeges.
    is that any speasial way to make directory to accessable for everyone, an example
    http://10.10.10.1/file <-----
    i start to love this litespeed, but his make me confused too :((
  6. mistwang

    mistwang LiteSpeed Staff

    there is no index.html, if you access /file/sample.txt, it will work.

Share This Page