Proxy Help!!! (403 Forbidden)

Discussion in 'Programming' started by Kirby6, Jan 12, 2007.

  1. #1
    I just bought a proxy site, and switched it over to my nameservers and uploaded all the stuff to my FTP, and when I try to load the page it says :

    "Forbidden
    You don't have permission to access /nph-proxy.cgi on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.37 Server at xxxxx.com Port 80"


    I changed my permissions to 777, and it still doesn't load. Can anybody help? Thanks.
     
    Kirby6, Jan 12, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    delete the htaccess file that came with the old site
     
    krakjoe, Jan 12, 2007 IP
  3. Kirby6

    Kirby6 Peon

    Messages:
    236
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Now it just says :


    Forbidden
    You don't have permission to access / on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
     
    Kirby6, Jan 12, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    you have htaccess intefering with it somewhere along the line, I'm sure of it ... php cannot produce that error it's from apache....
     
    krakjoe, Jan 12, 2007 IP
  5. Zulu

    Zulu Guest

    Messages:
    83
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Make sure:
    1. NS update is complete, and you domain is not pointing to its old ip.
    2. You have permission to run cgi script on your server (may be seen in cpanel)
    3. Put the cgi script in "cgi-bin" folder and access as your-domain.com/cgi-bin/nph-proxy.cgi. Apache, by default, does not allow cgi scripts to excecute outside cgi-bin directory and exits with a pemission denied error as above. This seems to be the case with your server too.

    And you are done.

    Read carefully. Its cgi script, not php one.

    - Zulu
     
    Zulu, Jan 12, 2007 IP
  6. Kirby6

    Kirby6 Peon

    Messages:
    236
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the help. I did what you said, and now when I load www.mrsneakie.com/cgi-bin/nph-proxy.cgi, I'm just getting a blank page.

    Also, when I just try and access /cgi-bin, the same error message pops up. I talked to the owner of my servers and he said CGI script is allowed.
     
    Kirby6, Jan 14, 2007 IP
  7. Hasumoto

    Hasumoto Peon

    Messages:
    372
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It was working on my server, I don't know what happened.
     
    Hasumoto, Jan 15, 2007 IP
  8. sukantab

    sukantab Well-Known Member

    Messages:
    2,075
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Do a ping to the site and see if it is the correct ip address.
    Another reason could be your dosting doesn't provide cgi/perl.

    Also if I try only www.mrsneakie.com it works.
     
    sukantab, Jan 19, 2007 IP
  9. Kirby6

    Kirby6 Peon

    Messages:
    236
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah, I uploaded phproxy instead. That doesn't seem to work though, when I hit "browse", nothing happens.
     
    Kirby6, Jan 20, 2007 IP
  10. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #10
    Kirby, make sure the files are uploaded in the correct mode, ASCII, and if it still doesn't work, chmod the cgi files to 755. Make sure you can run .cgi files as well on your server/hosting account.
     
    Colleen, Jan 21, 2007 IP