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
cffa8695
Commit
cffa8695
authored
May 20, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaked documentation for web server configuration
parent
8aa9807a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
26 deletions
+31
-26
doc/usage.rst
doc/usage.rst
+31
-26
No files found.
doc/usage.rst
View file @
cffa8695
...
@@ -18,32 +18,8 @@ controller definitions, call the ``run`` method on your application::
...
@@ -18,32 +18,8 @@ controller definitions, call the ``run`` method on your application::
$app->run();
$app->run();
One other thing you have to do is configure your web server. If you
Then, you have to configure your web server (read below hints for Apache and
are using Apache you can use a ``.htaccess`` file for this.
IIS).
.. code-block:: apache
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Alternatively, if you use Apache 2.2.16 or higher, you can use the
`FallbackResource directive`_ so make your .htaccess even easier:
.. code-block:: apache
FallbackResource index.php
.. note::
If your site is not at the webroot level you will have to uncomment the
``RewriteBase`` statement and adjust the path to point to your directory,
relative from the webroot.
.. tip::
.. tip::
...
@@ -789,6 +765,35 @@ by commenting or removing this line in your php.ini file:
...
@@ -789,6 +765,35 @@ by commenting or removing this line in your php.ini file:
zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so
zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so
Apache configuration
--------------------
If you are using Apache you can use a ``.htaccess`` file for this:
.. code-block:: apache
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
.. note::
If your site is not at the webroot level you will have to uncomment the
``RewriteBase`` statement and adjust the path to point to your directory,
relative from the webroot.
Alternatively, if you use Apache 2.2.16 or higher, you can use the
`FallbackResource directive`_ so make your .htaccess even easier:
.. code-block:: apache
FallbackResource index.php
IIS configuration
IIS configuration
-----------------
-----------------
...
...
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