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
d45ba3ed
Commit
d45ba3ed
authored
May 01, 2013
by
Frederic G. MARAND
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: trustProxyData() is now replaced by setTrustedProxies().
parent
a0b5f746
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
doc/providers/http_cache.rst
doc/providers/http_cache.rst
+3
-2
doc/usage.rst
doc/usage.rst
+4
-4
No files found.
doc/providers/http_cache.rst
View file @
d45ba3ed
...
@@ -53,11 +53,12 @@ setting Response HTTP cache headers::
...
@@ -53,11 +53,12 @@ setting Response HTTP cache headers::
.. tip::
.. tip::
If you want Silex to trust the ``X-Forwarded-For*`` headers from your
If you want Silex to trust the ``X-Forwarded-For*`` headers from your
reverse proxy, you will need to run your application like this::
reverse proxy at address $ip, you will need to run your application like
this::
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
Request::
trustProxyData(
);
Request::
setTrustedProxies(array($ip)
);
$app->run();
$app->run();
This provider allows you to use the Symfony2 reverse proxy natively with
This provider allows you to use the Symfony2 reverse proxy natively with
...
...
doc/usage.rst
View file @
d45ba3ed
...
@@ -79,13 +79,13 @@ Then, you have to configure your web server (read the :doc:`dedicated chapter
...
@@ -79,13 +79,13 @@ Then, you have to configure your web server (read the :doc:`dedicated chapter
.. tip::
.. tip::
If your application is hosted behind a reverse proxy a
nd you want Silex to
If your application is hosted behind a reverse proxy a
t address $ip, and you
trust the ``X-Forwarded-For*`` headers, you will need to run your
want Silex to trust the ``X-Forwarded-For*`` headers, you will need to run
application like this::
your
application like this::
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
Request::
trustProxyData(
);
Request::
setTrustedProxies(array($ip)
);
$app->run();
$app->run();
Routing
Routing
...
...
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