Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
e627b540
Commit
e627b540
authored
Jun 12, 2012
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docs] Add config example for nginx
parent
4b70fb1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
doc/usage.rst
doc/usage.rst
+29
-4
No files found.
doc/usage.rst
View file @
e627b540
...
@@ -753,8 +753,11 @@ to prevent Cross-Site-Scripting attacks.
...
@@ -753,8 +753,11 @@ to prevent Cross-Site-Scripting attacks.
return $app->json(array('name' => $name));
return $app->json(array('name' => $name));
});
});
Apache configuration
Webserver configuration
--------------------
-----------------------
Apache
~~~~~~
If you are using Apache you can use a ``.htaccess`` file for this:
If you are using Apache you can use a ``.htaccess`` file for this:
...
@@ -782,8 +785,30 @@ Alternatively, if you use Apache 2.2.16 or higher, you can use the
...
@@ -782,8 +785,30 @@ Alternatively, if you use Apache 2.2.16 or higher, you can use the
FallbackResource index.php
FallbackResource index.php
IIS configuration
nginx
-----------------
~~~~~
If you are using nginx, configure your vhost to forward non-existent
resources to ``index.php``:
.. code-block:: nginx
server {
index index.php
location / {
try_files $uri $uri/ /index.php;
}
location ~ index\.php$ {
fastcgi_pass /var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
IIS
~~~
If you are using the Internet Information Services from Windows, you can use
If you are using the Internet Information Services from Windows, you can use
this sample ``web.config`` file:
this sample ``web.config`` file:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment