New to vps, need help with crazy problem.

Discussion in 'Site & Server Administration' started by craiger22, Apr 1, 2008.

  1. #1
    Hello,

    I just recently ventured to move all of my sites to a vps.

    First off I moved my sites and couldnt get mod_rewrite working. I have corrected that problem and everything was running fine, until today when I access a directory that doesnt hold html or php files I get a 403 forbidden error.

    I tried to chmod everything (even 777) to no avail. I have also noticed that my webpages cannot load images from the image directory.

    Any ideas on what has happened?
     
    craiger22, Apr 1, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You will need to edit apache config, to allow viewing directory without files inside. Or you can put a .htaccess with this code into your folder

     
    gate2vn, Apr 2, 2008 IP
    craiger22 likes this.
  3. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Which setting is that in the apache config?
     
    craiger22, Apr 2, 2008 IP
  4. D'Godown

    D'Godown Well-Known Member

    Messages:
    1,093
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #4
    locate httpd.conf for this change^^
    I believe .htacces is best bet for you.
     
    D'Godown, Apr 3, 2008 IP
  5. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #5
    I am using the .htaccess fix right now, but I would like to know exactly what entry in the httpd.conf file needs to be changed. I want to learn all I can :)
     
    craiger22, Apr 3, 2008 IP
  6. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #6
    gate2vn, Apr 3, 2008 IP