Welcome! Log In Create A New Profile

Advanced

Debugging and ultimately setting up nGinx with hhvm-fastcgi

Posted by dmadisetti 
Debugging and ultimately setting up nGinx with hhvm-fastcgi
January 03, 2014 03:19PM
Turns out I'm having some issues setting up nginx with hhvm-fastcgi. Browser attempts to connect, and finally just hangs. I think I'm falling short at my nginx configuration, so
I went back and rebuild with ./configure --with-debug

`/usr/local/nginx/sbin/nginx -V`
nginx version: nginx/0.8.33
built by gcc 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
TLS SNI support enabled
configure arguments: --with-http_ssl_module --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx_error.log --http-log-path=/var/log/nginx_access.log --with-cc-opt=-Wno-error

Upon trying to access the site debug log just leaves
2014/01/03 19:20:35 [debug] 8536#0: epoll add event: fd:11 op:1 ev:00000001

I tried pointing another domain at the server, just to see what would happen, and thankfully I got a 403 over 80.
Why isn't there more of a trace? My configuration is attached
Attachments:
open | download - default.txt (1.4 KB)
Re: Debugging and ultimately setting up nGinx with hhvm-fastcgi
January 03, 2014 03:21PM
Attachment looks sort of sketch- benefit of anyone not willing to download:

server {
listen *:80 default;
server_name _;
access_log /home/blogs/logs/nginx/access.log;
error_log /home/blogs/logs/nginx/error.log debug;
location / {
deny all;
}
}

server {
listen *:80;
server_name site.com *.site.com the.site.com;

root /home/blogs/wordpress/;
index index.html index.php index.htm;

access_log /home/blogs/logs/nginx/site/access.log;
error_log /home/blogs/logs/nginx/site/error.log debug;

proxy_redirect off;
set $myuri $request_uri;

rewrite ^/wp-admin\/a$ /wp-admin/index.php;

if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/blogs/wordpress$fastcgi_script_name;
include fastcgi_params;
}

# Try MemCached First
location / {
set $memcached_key "$uri?$args";
memcached_pass 127.0.0.1:11211;
error_page 404 405 502 504 = @fallback;
}

location @fallback {
try_files $uri $uri/ /index.php?$args;
}

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready