Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
mailinabox
Commits
64b1db4c
Commit
64b1db4c
authored
Aug 11, 2014
by
jkaberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include_path to include php-libawl and use php-fpm instead of cgi
parent
f287ca3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
nginx.conf
conf/nginx.conf
+10
-5
No files found.
conf/nginx.conf
View file @
64b1db4c
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
## Do not edit this file. It will be replaced each time
## Do not edit this file. It will be replaced each time
## Mail-in-a-Box needs up update the web configuration.
## Mail-in-a-Box needs up update the web configuration.
upstream
php-fpm
{
server
unix:/var/run/php5-fpm.sock
;
}
# Redirect all HTTP to HTTPS.
# Redirect all HTTP to HTTPS.
server
{
server
{
listen
80
;
listen
80
;
...
@@ -69,7 +73,7 @@ server {
...
@@ -69,7 +73,7 @@ server {
fastcgi_param
SCRIPT_FILENAME
$document_root$1
;
fastcgi_param
SCRIPT_FILENAME
$document_root$1
;
fastcgi_param
PATH_INFO
$2
;
fastcgi_param
PATH_INFO
$2
;
fastcgi_param
HTTPS
on
;
fastcgi_param
HTTPS
on
;
fastcgi_pass
unix:/tmp/php-fastcgi.www-data.sock
;
fastcgi_pass
php-fpm
;
}
}
# Optional: set long EXPIRES header on static assets
# Optional: set long EXPIRES header on static assets
...
@@ -84,21 +88,22 @@ server {
...
@@ -84,21 +88,22 @@ server {
location
=
/.well-known/webfinger
{
location
=
/.well-known/webfinger
{
include
fastcgi_params
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/bin/mailinabox-webfinger.php
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/bin/mailinabox-webfinger.php
;
fastcgi_pass
unix:/tmp/php-fastcgi.www-data.sock
;
fastcgi_pass
php-fpm
;
}
}
# Microsoft Exchange autodiscover.xml for email
# Microsoft Exchange autodiscover.xml for email
location
/autodiscover/autodiscover.xml
{
location
/autodiscover/autodiscover.xml
{
include
fastcgi_params
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/bin/mailinabox-exchange-autodiscover.php
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/bin/mailinabox-exchange-autodiscover.php
;
fastcgi_pass
unix:/tmp/php-fastcgi.www-data.sock
;
fastcgi_pass
php-fpm
;
}
}
# Z-Push (Microsoft Exchange ActiveSync)
# Z-Push (Microsoft Exchange ActiveSync)
location
/Microsoft-Server-ActiveSync
{
location
/Microsoft-Server-ActiveSync
{
include
/etc/nginx/fastcgi_params
;
include
/etc/nginx/fastcgi_params
;
fastcgi_param
PHP_VALUE
"include_path=/usr/share/awl/inc"
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/lib/z-push/index.php
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/lib/z-push/index.php
;
fastcgi_pass
unix:/tmp/php-fastcgi.www-data.sock
;
fastcgi_pass
php-fpm
;
}
}
# ADDITIONAL DIRECTIVES HERE
# ADDITIONAL DIRECTIVES HERE
...
...
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