Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vslinko/silex-skeleton


https://github.com/vslinko/silex-skeleton

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# Silex skeleton

## Installation

### Install composer

curl -s http://getcomposer.org/installer | php

### Install silex skeleton

composer.phar create-project rithis/silex-skeleton

## Server configuration

### Apache


DocumentRoot /var/www/project-name/current
ServerName project-name.localhost

RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/web%{REQUEST_URI} !-f
RewriteRule ^ /app/index.php [L]
RewriteRule (.*) /web$1

### nginx

server {
server_name project-name.localhost;
root /var/www/project-name/current;

location / {
try_files /web$uri @fallback;
}

location @fallback {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/app/index.php;
}
}