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
4f3375f8
Commit
4f3375f8
authored
Jul 01, 2014
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a caution about how to configure security for php-cgi/Apache
parent
2dcb2b1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
doc/phar.rst
doc/phar.rst
+1
-1
doc/providers/security.rst
doc/providers/security.rst
+13
-0
No files found.
doc/phar.rst
View file @
4f3375f8
...
@@ -16,7 +16,7 @@ the disk. Then, require it in your script::
...
@@ -16,7 +16,7 @@ the disk. Then, require it in your script::
<?php
<?php
require_once __DIR__.'/silex.phar';
require_once
'phar://'.
__DIR__.'/silex.phar';
$app = new Silex\Application();
$app = new Silex\Application();
...
...
doc/providers/security.rst
View file @
4f3375f8
...
@@ -158,6 +158,19 @@ When the user is authenticated, the user stored in the token is an instance of
...
@@ -158,6 +158,19 @@ When the user is authenticated, the user stored in the token is an instance of
`User
`User
<http://api.symfony.com/master/Symfony/Component/Security/Core/User/User.html>`_
<http://api.symfony.com/master/Symfony/Component/Security/Core/User/User.html>`_
.. caution::
If you are using php-cgi under Apache, you need to add this configuration
to make things work correctly:
.. code-block:: apache
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
Securing a Path with a Form
Securing a Path with a Form
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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