Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Where is $Configuration['HTTP_METHOD'] defined?

edited April 2009 in Vanilla 1.0 Help
Hej,

I have a little issue. My Forum is SSL secured and hence the url starts with https://. However, for the addon I am working on I use the function GetRequestUri();. This function uses the $Configuration['HTTP_METHOD']-variable to build the url but unfortunately in the process the s of https is lost because $Configuration['HTTP_METHOD'] is defined as 'http' :(

Comments

  • appg/settings.php around line 103

    grep is your friend.

  • well... it is define in appg/settings.php, but you should overwrite it to conf/settings.php
  • Vanilla 1.1.6 should have better support for ssl. If installed vanilla with 1.1.6 installer it should have added $Configuration['http_method'] = 'https://'; for you.
  • Hmm... its 1.1.6 but vanilla didn't add it :(

    However, editing conf/settings.php did the trick.
  • Which web server are you running? I tested it with apache 2.2.9.
  • Some more information for you ;)
    Apache/2.2.3 (Debian) DAV/2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8

    However, don't worry to much about it. It might be possible that the error resulted from some weird installation procedure. A colleague installed that instance of vanilla. Its our new addon testing ground. He might just copied some stuff over from our productive installation.
Sign In or Register to comment.