# Wave Framework <http://github.com/kristovaher/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 <kristo@waher.net>
# @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
server
{
# Make sure to set this as your actual server WWW root
# This directory depends on nginx directory
root /var/www/example.com/html;
# Index file
index index.php;
# Checks first if file exists if not redirect it to index.php
try_files $uri $uri/ /index.php;
}
|