Question Nginx Configuration

Status
Not open for further replies.

Nirjonadda

Customer
Where i put nginx.conf code or upload nginx.conf files ?

This is my default Nginx Configuration:

Code:
user  nobody;
worker_processes  8;
error_log  logs/error.log info;
timer_resolution 100ms;
worker_rlimit_nofile  8192;
events {
worker_connections  5120; 
use epoll; 
}
http {

open_file_cache max=5000 inactive=30s;
open_file_cache_valid 120s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
open_log_file_cache max=1024 inactive=30s min_uses=2;

server_names_hash_max_size 10240;
server_names_hash_bucket_size 1024;
include    mime.types;
default_type  application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout  5;

gzip on;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length  1000;
gzip_comp_level  6;
gzip_buffers  16 8k;
gzip_types    text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml application/javascript application/json;
ignore_invalid_headers on;
client_header_timeout  3m;
client_body_timeout 3m;
client_max_body_size 200m; 
send_timeout     3m;
connection_pool_size  256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size  4k;
output_buffers   4 32k;
postpone_output  1460;
proxy_temp_path  /tmp/nginx_proxy/;
include cloud_flare.conf;
log_format bytes_log "$msec $bytes_sent .";
include "/usr/local/nginx/vhost/*.conf";
include "/usr/local/nginx/conf/cpanel_autodiscover.conf";
}

DBSEO nginx.conf IS:

Code:
location ~* \.(png|jpg|jpeg|gif|ico)$ 
	{
		expires 30d;
		log_not_found off;
	}
	location /
	{
		try_files $uri $uri/ /dbseo.php;
	}

	location ~ ^((?!dbseo).)*\.php$
	{
		rewrite ^/(.*)$ /dbseo.php last;
	}
	
	location ~* \.(php)$
	{
		fastcgi_index index.php;
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		include /etc/nginx/fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
		fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
	}
 
I don't know where you would apply nginx configuration files, you should ask your server administrator.
 
Sorry, I don't understand the question.

Nginx does not work like Apache, the .conf file is a server-wide configuration file that Nginx reads upon startup. You cannot simply drop the nginx.conf file in your site's directory and expect it to work like a .htaccess file does.

For this reason, we do not recommend Nginx unless you either have the knowledge to configure Nginx yourself, or have a server administrator with the knowledge to configure Nginx for you.

We cannot tell you the exact location of your nginx.conf file, as this varies on a server-by-server basis and by how it was installed.
 
Hello Nirjonadda,

This ticket has now been closed with the status Answered.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,191
Customer rating
5.00 star(s) 1 ratings
Back
Top