I am very new to nginx, Any hints?<div><br></div><div>You can check the test page at <a href="http://74.86.84.197/t.php">http://74.86.84.197/t.php</a><br clear="all"><br></div><div>As you can see at bottom of this page there are no header related _SERVER variables.</div>
<div><br></div><div>Here is my domain config file:</div><div><br></div><div>=============================================================</div><div><div>server {</div><div>        listen <a href="http://74.86.84.197:80">74.86.84.197:80</a>;</div>
<div>        server_name <a href="http://scrubly.com">scrubly.com</a>;</div><div><br></div><div>        location / {</div><div>                root   /avinashi/sites/<a href="http://scrubly.com">scrubly.com</a>;</div><div>
                index index.php;</div><div><br></div><div>                # if file exists return it right away</div><div>                if (-f $request_filename) {</div><div>                        break;</div><div>                }</div>
<div><br></div><div>                # otherwise rewrite the fucker</div><div>                if (!-e $request_filename) {</div><div>                        rewrite ^(.+)$ /index.php$1 last;</div><div>                        break;</div>
<div>                }</div><div><br></div><div>        }</div><div><br></div><div>        # if the request starts with our frontcontroller, pass it on to fastcgi</div><div>        location ~ ^/(.+).php</div><div>        {</div>
<div>                fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div><div>                fastcgi_param SCRIPT_FILENAME /avinashi/sites/<a href="http://scrubly.com">scrubly.com</a>$fastcgi_script_name;</div>
<div>                fastcgi_param PATH_INFO $fastcgi_script_name;</div><div>                #include /usr/local/nginx/conf/fastcgi_params;</div><div><br></div><div>                fastcgi_connect_timeout 60;</div><div>                fastcgi_send_timeout 180;</div>
<div>                fastcgi_read_timeout 180;</div><div>                fastcgi_buffer_size 128k;</div><div>                fastcgi_buffers 4 256k;</div><div>                fastcgi_busy_buffers_size 256k;</div><div>                fastcgi_temp_file_write_size 256k;</div>
<div>                fastcgi_intercept_errors on;</div><div><br></div><div><br></div><div>        }</div><div>}</div></div><div>=============================================================</div><div><br></div><div><br></div>
<div>And here is the nginx.conf</div><div><br></div><div><br></div><div>=============================================================</div><div><div>worker_processes  6;</div><div><br></div><div>error_log  logs/error.log debug;</div>
<div>#error_log  logs/error.log  notice;</div><div>#error_log  logs/error.log  info;</div><div><br></div><div>#pid        logs/nginx.pid;</div><div><br></div><div><br></div><div>events {</div><div>    worker_connections  1024;</div>
<div>}</div><div><br></div><div><br></div><div>http {</div><div>    include       mime.types;</div><div>    default_type  application/octet-stream;</div><div><br></div><div>    log_format  main  &#39;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#39;</div>
<div>                      &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39;</div><div>                      &#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;</div><div><br></div><div>    #access_log  logs/access.log  main;</div>
<div><br></div><div>    sendfile        on;</div><div>    #tcp_nopush     on;</div><div><br></div><div>    keepalive_timeout  0;</div><div>    #keepalive_timeout  65;</div><div><br></div><div>    gzip  on;</div><div>    gzip_comp_level 1;</div>
<div>    gzip_proxied any;</div><div>    gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;</div><div><br></div><div>        include /etc/sites/*;</div>
<div><br></div><div>    server {</div><div>        listen       80;</div><div>        server_name  localhost;</div><div><br></div><div>        #charset koi8-r;</div><div><br></div><div>        #access_log  logs/host.access.log  main;</div>
<div><br></div><div>        location / {</div><div>            root   html;</div><div>            index  index.html index.htm;</div><div>        }</div><div><br></div><div>        #error_page  404              /404.html;</div>
<div><br></div><div>        # redirect server error pages to the static page /50x.html</div><div>        #</div><div>        error_page   500 502 503 504  /50x.html;</div><div>        location = /50x.html {</div><div>            root   html;</div>
<div>        }</div><div>}</div></div><div>}</div><div>=============================================================</div><div><br></div><div>Any help would be great!</div><div><br>Regards,<br><br>Ashvin Savani<br>CEO &amp; Chief Architect,<br>
FlashBrain - A Division of Avinashi<br>
</div>