PHP Classes

File: public/nginx-phplightmvc.conf

Recommend this page to a friend!
  Packages of Alvaro Talavera   PHP Light MVC   public/nginx-phplightmvc.conf   Download  
File: public/nginx-phplightmvc.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Light MVC
MVC framework to implement PHP Web applications
Author: By
Last change:
Date: 3 months ago
Size: 848 bytes
 

Contents

Class file image Download
index index.php index.html index.htm; # Global restrictions configuration file. # Designed to be included in any server {} block.</p> 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). # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban) location ~ /\. { deny all; } location / { try_files $uri $uri/ /index.php?url=$uri&$args; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_intercept_errors on; fastcgi_pass php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; }