** Please note that we do not provide support for nGinx itself. URL rewriting happens at web server level, and is independant of sh404sef or even Joomla. The information below was contributed by end users and i provided here as a courtesy only.
nGinx is a very lightweight and fast web servers. Here is a sample nginx config file:
server {
listen 80;
server_name mysite.com;
rewrite ^(.*) http://www.mysite.com$1 permanent;
}
server {
listen 80;
server_name www.mysite.com;
access_log /path_to_wherever_you_want/logs/access.log;
error_log /path_to_wherever_you_want/logs/error.log;
root /path/to/your/site/root/directory;
# possible old url redirections
rewrite ^/forum/.*$ http://www.mysite.com/forums/ permanent;
rewrite ^/en/forum/.*$ http://www.mysite.com/forums/ permanent;
location / {
index index.php;
# serve static files that exist without running other rewrite tests
if (-f $request_filename) {
expires 30d;
break;
}
# send all non-existing file or directory requests to index.php
if (!-e $request_filename) {
rewrite ^/(.*) /index.php last;
}
}
location ~ \.php$ {
include /etc/nginx/sites-available/fastcgi_params;
fastcgi_pass 127.0.0.1:8000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/your/FASTCGI_PARAMS_FILE/directory$fastcgi$
}
}
This configuration assumes that PHP is running as FastCGI, listening on port 8000. Adjust as required. You'll also need a fastcgi_params file with details about how to connect to PHP.
Here is mine:
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REDIRECT_STATUS 200;



Assistance with technical questions, product inquiries and customer service can be found in our 