<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span id="result_box" class="" lang="en"><span class="">Hi</span> <span>I'm</span>
<span class="">setting up a</span> <span>nginx</span> <span>as a reverse</span> <span>
proxy</span> <span class="">but</span> <span class="">to</span> <span class="">try to see</span>
<span>a site with</span> <span>drupal</span> <span>locally</span> <span>that</span>
<span>have</span> <span>shown</span> <span>me</span> <span>502</span> <span>Bad</span>
<span>Gateway</span> <span>error</span><span>.</span><br>
<span>this gets</span> <span>me</span> <span class="">in the logs.</span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""></span></span><span id="result_box" class="" lang="en"><span class=""><span>016/07/02 00:51:57 [error] 18120#0: *61 upstream sent unsupported FastCGI protocol version: 72 while reading response header
from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8080", host: " localhost"</span></span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><span><br>
</span></span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><span><br>
</span></span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><span><span tabindex="-1" id="result_box" class="" lang="en"><span>I can not</span>
<span>get him out of</span> <span>there</span> <span>I find</span> <span>that causes</span>
<span>this</span> <span>error.</span> <span>the</span> <span>server operating system</span>
<span>is a</span> <span class="">gentoo</span><span>.</span> <span class="">I show my</span>
<span class="">vhost</span></span></span></span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><span><span tabindex="-1" id="result_box" class="" lang="en"><span class=""><br>
</span></span></span></span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><span><span tabindex="-1" id="result_box" class="" lang="en"><span class=""><span id="ms-rterangepaste-start"></span></p>
<div>server {<br>
listen 80;<br>
server_name localhost;<br>
<br>
access_log /var/log/nginx/localhost_access_log main;<br>
error_log /var/log/nginx/localhost_error_log info;<br>
<br>
root /var/www/site/prueva/www/;<br>
<br>
location / {<br>
index index.html index.htm index.php;<br>
autoindex on;<br>
autoindex_exact_size off;<br>
autoindex_localtime on;<br>
<br>
}<br>
<br>
location ~ \.php$ {<br>
# Test for non-existent scripts or throw a 404 error<br>
# Without this line, nginx will blindly send any request ending in .php to php-fpm<br>
try_files $uri =404;<br>
include /etc/nginx/fastcgi.conf;<br>
fastcgi_pass 127.0.0.1:8080; ## Make sure the socket corresponds with PHP-FPM conf file<br>
}<br>
}<br>
</div>
<span id="ms-rterangepaste-end"></span></span></span></span></span></span><br>
<p></p>
</div>
</body>
</html>