Simple Wordpress Configuration Not Redirecting to Root

I'm using pretty simple nginx boilerplate here, but it appears my server isn't listening when I attempt to access my domain's root. Here's my nginx.conf

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    gzip on;
    gzip_disable "msie6";

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

    server {
        listen 80;
        server_name blog.dev.company.com ;
        root /var/www/wordpress/ ;

        location / {
            index index.php index.html index.htm;
            try_files $uri $uri/ /index.php?$args;
        }
    }
}

From my understanding, I should be getting the index.php I have set up in /var/www/wordpress when I make a request to blog.dev.company.com. Instead, the site just hangs. The domain name is found, but nginx does not process the request. The nginx access log is empty. What am I missing?

Solutions

Do you have a location such as this to handle PHP scripts?

# Pass the PHP scripts to FastCGI server
location ~ \.php$ {
    try_files       $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include         fastcgi_params;

    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass    unix:/var/run/php5-fpm.sock;   
}
Tags: Wordpress / Nginx

Similar questions

Redirecting Issue - Site only redirecting on mobile but not on Desktop
I have this site on WordPress  http://vergelabogados.pe/ and I make a  redirect in the index.php to another site But nothing happens on desktop, but in a mobile device works fine. I try to find out code on .htaccess file, index file, but I can't find  nothing. I Google it but not found any helpful solution. Any suggestion what c...
htaccess experts: Redirect all but root to one TLD, redirect root to another TLD - WordPress
Help from the gurus is appreciated. I have been requested to put a client's WordPress homepage on one TLD (i.e. domain.eu), and have all other pages/directories be 301'd to a different TLD extension (i.e. domain.com/everything-else). Not sure why this is being requested, but apparently it's important to the client, and I've been banging my head to ...
in wordpress how to redirect root/wp-content or root/wp-content/plugin directory url to home page
How do i redirect a root/wp-content to main index page in wordpress i have installed redirection plugin and define their http://www.heraldsolutions.in/wp-content/ to http://www.heraldsolutions.in/ but it's redirection is not working also we have maintain .htaccess apply rule but it's not redirect on hompage.please help to solve this issue .htaccess...
Move old site from root to subdirectory and install WordPress in the root (redirect conflicts)
I moved my old static site to a subdirectory named "old" and installed WordPress in the root directory. How can i redirect to the old site without creating conflicts with WordPress .htaccess? Example: mysite.com/myoldsitefile.htm should redirect to mysite.com/old/myoldsitefile.htm instead of to the 404 error page of WordPress site.
.htaccess redirect: wordpress multsite root domain http://example.com redirect to http://www.example.com ONLY ON ROOT
Basically, i still need the root domain to work in all sub-directories and can't use an apache VirtualHosts redirect because it will invalidate the multisite admin domain, but I don't want users to see the domain without www. How can this be accomplished? Redirect plugins won't allow me to redirect from the root domain because they run on the site ...
Pointing subdomain to root with WordPress on root - Redirection issue
I have WordPress installed on example.com. I am making a multi-lingual site, with English on the main root domain and french on a sub domain: The way i'm setting it up involves just the one WP installation (on the main domain), and have the sub domain point at the root of the main domain. So, in cPanel, I have set up the sub domain's document root ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.