These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

IGB Headers and Apache 2.4 problems (2)

Author
Lexx Min
Bad Omen Industries
#1 - 2015-09-16 20:14:36 UTC
The problem was:
"seems that 2.4 is stripping the HTTP headers, as it doesn't like the underscores in them."

Inspired by prev. topic: https://forums.eveonline.com/default.aspx?g=posts&m=1908990
where no correct answer was given, no solution (except using apache_request_headers() for PHP)
But for other languages (Perl, Python) and apache 2.4 web server you can use mod_headers to change underscores in IGB headers to hyphens. First enable mod_headers (Debian:
a2enmod headers && systemctl restart apache2
) and then place the following in the root of your site in .htaccess file:


..
# char
<If "%{HTTP:EVE_CHARNAME} != ''">
    RequestHeader set EVE-CHARNAME "expr=%{HTTP:EVE_CHARNAME}"
</If>

...
(this forum does not allow to post > and < symbols)

gist: https://gist.github.com/minlexx/e0bdbc02d2dfbb3ec375

hope this may be useful for someone

I really think In-game browser should use RFC-compliant headers not using underscores, using only hyphens.
Yogi Berimor
Monkey Attack Squad
Goonswarm Federation
#2 - 2015-09-17 06:27:35 UTC
Lexx Min wrote:

I really think In-game browser should use RFC-compliant headers not using underscores, using only hyphens.

IGB hasnt recieved an update for years and will be removed in (distant) future.