We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39115
    • 15 Posts
    when I'm trying to open the page that not exists, for example:

    http://test.pro-okr.nazwa.pl/fsdfsdfsdfsdfsdf
    http://test.pro-okr.nazwa.pl/sdfsdfsdf
    http://test.pro-okr.nazwa.pl/4543lrtldgkdf


    I get strange error. Different in all of major browsers. The most enigmatic in opera. What can I do?

    I'm using the newest version of MODx Revo. [ed. note: quardas last edited this post 14 years, 3 months ago.]
      • 41450
      • 3 Posts
      http://tracker.modx.com/issues/7509

      Solution:
      Put this code to .htaccess and everything will be fine.

      SetEnv force-no-vary
      SetEnv downgrade-1.0

      Thanks to Bogdan Khorolets for this solution.
        • 39115
        • 15 Posts
        Thanks! It really helps
          • 42215
          • 17 Posts
          Just to make picture fuller. Another solution is to create two system parameters:
          • error_page_header (Name: "HTTP header for 404", Value: "HTTP/1.0 404 Not Found", Type: text, Namespace: core, Lang string: site)
          • unauthorized_page_header: (Name: "HTTP header for 403", Value: "HTTP/1.0 403 Forbidden", Type: text, Namespace: core, Lang string: site)

          I think this solution is more flexible since it changes headers only for 404 and 403 statuses.

          According to this post (in Russian), the problem occures on hostings with Apache+Nginx. MODX Revo sends all the headers as HTTP/1.1, and Nginx gives HTTP/1.0 to Apache. So, Apache tries to respond to HTTP/1.0 with HTTP/1.1, mocks it up and adds chunks to headers, which is treated as errors by Nginx.

          Thanks to Viktor Dolgy fo the solution and the explaination.