Itworx4me
Well-known member
I have been trying to get this to work on my test server and it won't work. 
I get this error:
nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/conf.d/domain.com.conf:70
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Here are my rewrites:
	
	
	
		
Any help would be much appreciated.
Thanks,
Iworx4me
				
			I get this error:
nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/conf.d/domain.com.conf:70
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Here are my rewrites:
		Code:
	
	location / {
    try_files $uri $uri/ /index.php?$uri&$args;
    index index.php index.html;
}
location /install/data/ {
    internal;
}
location /install/templates/ {
    internal;
}
location /internal_data/ {
    internal;
}
location /library/ { #legacy
    internal;
}
location /src/ {
    internal;
}
location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include         fastcgi_params;
}Any help would be much appreciated.
Thanks,
Iworx4me
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		