Title: Nginx Problematic Setup
Last modified: August 20, 2016

---

# Nginx Problematic Setup

 *  [Angela](https://wordpress.org/support/users/angelazou/)
 * (@angelazou)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/nginx-problematic-setup/)
 * I want to have a subdomain setup on Nginx. And I have the following configuration
   following the example from [http://wiki.nginx.org/Wordpress](http://wiki.nginx.org/Wordpress).
   I’m using fastCGI as well
 *     ```
       map $http_host $blogid {
       	default		-999;
       }
   
       server {
       	root		/var/www/wordpress;
       	index		index.php;
       	listen		127.0.0.1:80;
       	server_name	idu.host *.idu.host;
       	charset		utf-8;
   
       	location / {
       		index		index.php;
       		try_files	$uri $uri/ /index.php?$args;
       	}
   
       	location ~ /\.ht {
       		deny		all;
       	}
   
       	location ~* \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
       		try_files	$uri = 404;
       		expires		max;
       		log_not_found	off;
       	}
   
       	location ~ ^/files/(.*)$ {
       		try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1;
       		access_log	off;
       		expires		max;
       		log_not_found	off;
       	}
   
       	location ^~ /blogs.dir {
       		internal;
       		alias /var/www/wordpress/wp-content/blogs.dir;
       		access_log	off;
       		expires		max;
       		log_not_found	off;
       	}
   
       	location ~ \.php$ {
       		include		/etc/nginx/fastcgi_params;
       		fastcgi_pass	127.0.0.1:9000;
       		fastcgi_index	index.php;
       		fastcgi_pass	php;
       		fastcgi_intercept_errors	on;
       	}
       }
       ```
   
 * But when I go to idu.host, the DNS lookup didn’t occur.

The topic ‘Nginx Problematic Setup’ is closed to new replies.

## Tags

 * [fastcgi](https://wordpress.org/support/topic-tag/fastcgi/)
 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 0 replies
 * 1 participant
 * Last reply from: [Angela](https://wordpress.org/support/users/angelazou/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/nginx-problematic-setup/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
