File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed
templates/conf/nginxconfig.io Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 64
64
fallback_php_path : '/api/' ,
65
65
66
66
php : true ,
67
- php_connection : '7.2 ' ,
67
+ php_connection : '/var/run/php/php7.2-fpm.sock ' ,
68
68
wordpress : false ,
69
69
drupal : false ,
70
70
Original file line number Diff line number Diff line change 384
384
</ label >
385
385
< div class ="col-sm-9 ">
386
386
< select class ="custom-select form-control-sm " ng-model ="data.php_connection " ng-class ="{ 'input-changed': data.php_connection !== defaultData.php_connection } ">
387
- < option value ="tcp "> TCP</ option >
388
- < option value ="5.x "> 5.x socket</ option >
389
- < option value ="7.0 "> 7.0 socket</ option >
390
- < option value ="7.1 "> 7.1 socket</ option >
391
- < option value ="7.2 "> 7.2 socket</ option >
392
- < option value ="7.3 "> 7.3 socket</ option >
387
+ < option value ="127.0.0.1:9000 "> TCP: 127.0.0.1:9000</ option >
388
+ < option value ="/var/run/hhvm/sock "> HHVM socket: /var/run/hhvm/sock</ option >
389
+ < option value ="/var/run/hhvm/hhvm.sock "> HHVM socket: /var/run/hhvm/hhvm.sock</ option >
390
+ < option value ="/var/run/php5-fpm.sock "> 5.x socket: /var/run/php5-fpm.sock</ option >
391
+ < option value ="/var/run/php/php7.0-fpm.sock "> 7.0 socket: /var/run/php/php7.0-fpm.sock</ option >
392
+ < option value ="/var/run/php/php7.1-fpm.sock "> 7.1 socket: /var/run/php/php7.1-fpm.sock</ option >
393
+ < option value ="/var/run/php/php7.2-fpm.sock "> 7.2 socket: /var/run/php/php7.2-fpm.sock</ option >
394
+ < option value ="/var/run/php/php7.3-fpm.sock "> 7.3 socket: /var/run/php/php7.3-fpm.sock</ option >
393
395
</ select >
394
396
</ div >
395
397
</ div >
Original file line number Diff line number Diff line change 1
1
try_files $uri =404;
2
2
3
3
# fastcgi
4
- fastcgi_pass {{
5
- data.php_connection === 'tcp' ? '127.0.0.1:9000' : (
6
- data.php_connection === '5.x' ? 'unix:/var/run/php5-fpm.sock' : (
7
- 'unix:/var/run/php/php' + data.php_connection +'-fpm.sock'
8
- )
9
- )
10
- }};
4
+ fastcgi_pass {{ data.php_connection[0] === '/' ? 'unix:' : '' }}{{ data.php_connection }};
11
5
fastcgi_index index.php;
12
6
fastcgi_split_path_info ^(.+\.php)(/.+)$;
13
7
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
You can’t perform that action at this time.
0 commit comments