Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Causes of internal server error 500

    My server seems to be b0rked with a 500 error. What kind of things cause this?
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Check your error log and you will see.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    403
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Usually it is a typo on the coder's part...missing brackets, expected brackets, malformed code, doing things in the wrong order, semi-colons, not enclosing a string with what you opened it with, not escaping special characters, etc...but your error log, if you have access to it, will save you over and over again. Also, if you hosts as it enabled, you can just login through SSH or telent and do ./filename.ext to debug it...
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It must have been my .htaccess, this line:

    RewriteCond %{HTTP_USER_AGENT} ^Cold Fusion 4.0.*$

    presumably the "4.0" part.
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #5
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    403
    Thanks
    0
    Thanked 0 Times in 0 Posts
    mod_rewrite doesn't like blank spaces in the user agent you are checking for, so just use this

    RewriteCond %{HTTP_USER_AGENT} ^Cold [OR]

    Leave off the [OR] if you aren't doing multiple checks
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society


  •  

    LinkBacks (?)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •