Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 because of invalid headers #20

Closed
jvoisin opened this issue Jun 27, 2017 · 3 comments
Closed

Error 500 because of invalid headers #20

jvoisin opened this issue Jun 27, 2017 · 3 comments

Comments

@jvoisin
Copy link
Contributor

jvoisin commented Jun 27, 2017

It seems that something went wrong when creating the database of PHP, because elixir produces non-working pages:

==> /var/log/apache2/error.log <==
[Tue Jun 27 08:42:12.979348 2017] [http:error] [pid 11443:tid 116669335639808] [client 192.168.135.96:60244] AH02429: Response header name '<!--' contains invalid characters, aborting request, referer: http://10.1.76.1/php/php-7.1.6/ident/zend_string

==> /var/log/apache2/other_vhosts_access.log <==
elixir.example.com:80 192.168.135.96 - - [27/Jun/2017:08:42:12 +0000] "GET /php/php-7.1.6/source/Zend/zend_API.c HTTP/1.1" 500 777 "http://10.1.76.1/php/php-7.1.6/ident/zend_string" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36"

Here is my Apache2 configuration:

<Directory /data/git/elixir/http/>
    Options +ExecCGI
    AllowOverride None
    Require all granted
    SetEnv PYTHONIOENCODING utf-8
    SetEnv LXR_PROJ_DIR /data/git/elixir-data
</Directory>

AddHandler cgi-script .py

<VirtualHost *:80>
    ServerName elixir.example.com
    DocumentRoot /data/git/elixir/http

    RewriteEngine on
    RewriteRule "^/$" "/php/latest/source" [R]
    RewriteRule "^/.*/(source|ident|search)" "/web.py" [PT]
</VirtualHost>
@tookilt
Copy link

tookilt commented Jun 30, 2017

try to add HttpProtocolOptions Unsafe

@jvoisin
Copy link
Contributor Author

jvoisin commented Jun 30, 2017

Wonderful, this fixes my issue ♥

@jvoisin jvoisin closed this as completed Jun 30, 2017
@ibnbd
Copy link

ibnbd commented Aug 24, 2017

@tookilt unfortunately I am encountering same problem, I am sorry I am not that pro with codes. Where exactly should I place HttpProtocolOptions Unsafe ?
on .htaccess or on my httpd.conf?
Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants