Nickkun/ACP/master/.htaccess - Htaccess File

Nickkun/ACP/master/.htaccess

#
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /home/azureuser/www;

    # Add index.php to the list if you are using PHP
    index index.php index.html index.htm index.nginx-debian.html;

    server_name localhost;

    location / {
        try_files $uri $uri/ /index.php?/$request_uri;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;

        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /.ht {
        deny all;
    }
}

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI, SCRIPT_FILENAME

Comments

Apache