ISPConfig 3 nginx php file not found

Discussion in 'Installation/Configuration' started by KardiWeb, Jun 10, 2013.

  1. KardiWeb

    KardiWeb New Member

    I faced the following error: File not found. What could be the problem? Nginx conf:

    Code:
    server {
            listen 1.2.3.4:80;
            server_name blog.example.org ;
            root   /var/www/blog.example.org/web;
            index index.html index.htm index.php index.cgi index.pl index.xhtml;
            location ~ \.shtml$ {
                ssi on;
            }
    
    
            error_log /var/log/ispconfig/httpd/blog.example.org/error.log;
            access_log /var/log/ispconfig/httpd/blog.example.org/access.log combined;
    
            ## Disable .htaccess and other hidden files
            location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
            }
    
            location = /favicon.ico {
                log_not_found off;
                access_log off;
            }
    
            location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
            }
    
            location /stats {
    
                index index.html index.php;
                auth_basic "Members Only";
                auth_basic_user_file /var/www/clients/client/web1/web/stats/.htpasswd_stats;
            }
    
            location ^~ /awstats-icon {
                alias /usr/share/awstats/icon;
            }
    
            location ~ \.php$ {
                try_files /1234abcd.htm @php;
            }
    
            location @php {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9013;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                #fastcgi_param PATH_INFO $fastcgi_script_name;
                fastcgi_intercept_errors on;
            }
    
            location /cgi-bin/ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                root /var/www/clients/client/web1;
                gzip off;
                fastcgi_pass  unix:/var/run/fcgiwrap.socket;
                fastcgi_index index.cgi;
                fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
            }
    
            # WordPress friendly urls
            location / {
            try_files $uri $uri/ /index.php?$args;
            }
    
    
    }
     

Share This Page