Internal Server Error from .htaccess :(

Discussion in 'Site & Server Administration' started by bart777, Oct 26, 2010.

  1. #1
    heyy guys Im trying to block a few country's so I found this site to block countrys so it generates a list of ips to block so I uploaded the txt file to my server and renamed it .htaccess I also upload a black .htaccess file and I still get the error, im also useing a mac computer so maybe the txt file is not correct? and this is the error I got...
    any help would be great guys, i have been trying to work this out for 3 days now and im a bit of a noob.

    I also did contact my host and this is the error report I got from him




    ..........................................................................................................................
    Bart,

    I am getting the following error from the Apache error log when I enabled the .htaccess file for the domain 'msproxy.net'.

    =========
    [Mon Oct 25 23:14:39 2010] [alert] [client 122.167.249.34] /home/faceboo3/public_html/mysite1.net/.htaccess: Invalid command '0deny', perhaps misspelled or defined by a module not included in the server configuration
    =========

    From the above error message, it is clear that there is a syntax error in the .htaccess file. Can you please double check whether you have added all the IP address properly in .htaccess file. Please check and let us know.
    .........................................................................................................................






    internal Server Error
    The server encountered an internal error or
    misconfiguration and was unable to complete
    your request.
    Please contact the server administrator,
    webmaster@mysite.mysite1 and inform them of the time the error occurred,
    and anything you might have done that may have
    caused the error.
    More information about this error may be available
    in the server error log.
    Additionally, a 500 Internal Server Error
    error was encountered while trying to use an ErrorDocument to handle the request.
     
    bart777, Oct 26, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Definitely a problem with your text-editor. I would connect with SSH and use nano or vi/vim to correct those errors.
     
    CSM, Oct 26, 2010 IP
  3. bart777

    bart777 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I ended up fixing it by uploading the htacces.txt then going to file manager and copy and past the code over the code that is already there, then I went to my ftp client and renamed the file to .htacces.
     
    bart777, Oct 26, 2010 IP
  4. eSupun

    eSupun Well-Known Member

    Messages:
    105
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    Wrong file name!

    It should be .htaccess
     
    eSupun, Oct 30, 2010 IP
  5. TheHostGenie

    TheHostGenie Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's possible you experienced this error in the first place because your original .htaccess was edited in Notepad or another program that adds whitespace - if using cPanel, best off using the built in file manager and using the 'edit code' tool. Naming it with a .txt extension or misspelling .htaccess would be a problem as well.
     
    TheHostGenie, Nov 10, 2010 IP