Trouble in Wordpress installation in Nginx

Discussion in 'General' started by shemulworld, Apr 19, 2013.

  1. shemulworld

    shemulworld New Member

    I just created a site in ispconfig site section then i added these nginx Directives
    Code:
    server {
           listen 80;
           server_name www.smaalu.me smaalu.me;
           root /var/www/clients/client1/web1/web;
           if ($http_host != "www.smaalu.me") {
                     rewrite ^ http://www.smaalu.me$request_uri permanent;
           }
           index index.php index.html;
           location = /favicon.ico {
                    log_not_found off;
                    access_log off;
           }
           location = /robots.txt {
                    allow all;
                    log_not_found off;
                    access_log off;
           }
           # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
           location ~ /\. {
                    deny all;
                    access_log off;
                    log_not_found off;
           }
           location / {
                    try_files $uri $uri/ /index.php?$args;
           }
           # Add trailing slash to */wp-admin requests.
           rewrite /wp-admin$ $scheme://$host$uri/ permanent;
           location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                    expires max;
                    log_not_found off;
           }
           location ~ \.php$ {
                    try_files $uri =404;
                    include /etc/nginx/fastcgi_params;
                    fastcgi_pass 127.0.0.1:9000;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
           }
    }
    but same it is ERROR 500 - Internal Server Error! , Please help guys
     

Share This Page