Login   Register  
PHP Classes

File: nginx.conf

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: Removed author information from project-specific files, updated other documentation inconsistencies.
Date: 1 year ago
Size: 1,294 bytes


Class file image Download
# Wave Framework <http://www.waveframework.com>
# 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


	# 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;
	# This is for making sure that files in /resources/static/ folder don't get parsed with PHP
	location ^~ /resources/static/ {
	# Rewrite that directs everything, except PHP to index file
	# Make sure you place this before your "location ~ \.php$ {" for the server configuration.
	location / {
		rewrite ^(.*)$ ./index.php last;