Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
28943a1d
Commit
28943a1d
authored
Mar 18, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added note about configuring nginx for HTTPS
parent
3b9e6fc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
installation.md
docs/guide/installation.md
+6
-2
No files found.
docs/guide/installation.md
View file @
28943a1d
...
@@ -122,7 +122,7 @@ an [FPM SAPI](http://php.net/install.fpm). Below is a sample host configuration
...
@@ -122,7 +122,7 @@ an [FPM SAPI](http://php.net/install.fpm). Below is a sample host configuration
The configuration tells the server to send all requests for non-existent resources through the bootstrap file,
The configuration tells the server to send all requests for non-existent resources through the bootstrap file,
resulting in "prettier" URLs without the need for
`index.php`
references.
resulting in "prettier" URLs without the need for
`index.php`
references.
~~~
```
server {
server {
set $yii_bootstrap "index.php";
set $yii_bootstrap "index.php";
charset utf-8;
charset utf-8;
...
@@ -159,6 +159,10 @@ server {
...
@@ -159,6 +159,10 @@ server {
deny all;
deny all;
}
}
}
}
~~~
```
When using this configuration, you should set
`cgi.fix_pathinfo=0`
in the
`php.ini`
file in order to avoid many unnecessary system
`stat()`
calls.
When using this configuration, you should set
`cgi.fix_pathinfo=0`
in the
`php.ini`
file in order to avoid many unnecessary system
`stat()`
calls.
Note that when running HTTP server you need to add
`fastcgi_param HTTPS on;`
in order for Yii to properly detect if
connection is secure.
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