PHP Classes

File: nginx.conf

Recommend this page to a friend!
  Classes of Kristo Vaher  >  Wave Framework  >  nginx.conf  >  Download  
File: nginx.conf
Role: Auxiliary data
Content type: text/plain
Description: Nginx directives
Class: Wave Framework
MVC framework for building Web sites and APIs
Author: By
Last change: Update nginx.conf

New nginx rewrite.
Date: 7 years ago
Size: 1,043 bytes


Class file image Download
# Wave Framework <>
# Nginx Configuration
# Nginx commands are stored in this file. This file is never automatically loaded by Nginx and 
# commands and configuration from this file should be set to Nginx server configuration. These 
# commands redirect all HTTP requests, except those to /static/ folders and those that are PHP 
# files itself, to Index Gateway stored in /index.php. These commands and Wave Framework itself 
# only work when URL rewriting is supported.
# @package    Index Gateway
# @author     Kristo Vaher <>
# @copyright  Copyright (c) 2012, Kristo Vaher
# @license    GNU Lesser General Public License Version 3
# @tutorial   /doc/pages/rewrites.htm
# @since      2.0.0
# @version    3.1.4


	# Make sure to set this as your actual server WWW root
	# This directory depends on nginx directory
	root /var/www/;
	# Index file
	index index.php;

	# Checks first if file exists if not redirect it to index.php
	try_files $uri $uri/ /index.php;
For more information send a message to info at phpclasses dot org.