博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS 7 Nginx环境安装simpleSamlPhp
阅读量:4107 次
发布时间:2019-05-25

本文共 1539 字,大约阅读时间需要 5 分钟。

本文在CentOS 7.6 x64系统 + Nginx 1.6.0 + PHP 7.3.6环境下验证通过

假设simpleSamlPhp源码解压缩在/srv/www/simplesamlphp目录

Nginx的配置如下

server {    listen       82;    server_name  localhost;    set $root_path '/srv/www/simplesamlphp/www';    root $root_path;    index index.php index.html index.htm;    try_files $uri $uri/ @rewrite;    location @rewrite {        rewrite ^/(.*)$ /index.php?_url=/$1;    }    location /simplesaml {        # Location Access and error log files.                                                   access_log /var/log/nginx/simplesaml.access.log;                               error_log /var/log/nginx/simplesaml.error.log;        # add alias root to global simple saml install        alias /srv/www/simplesamlphp/www;        index index.php;        location ~ ^(?
/simplesaml)(?
.+?\.php)(?
/.*)?$ { fastcgi_split_path_info ^(.+?\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$phpfile; fastcgi_param PATH_INFO $pathinfo if_not_empty; fastcgi_pass 127.0.0.1:9000; include /opt/nginx/conf/fastcgi_params; } } location ~ \.php { fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php; include /opt/nginx/conf/fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }}

 

这样子就可以正常运行了

转载地址:http://xyvsi.baihongyu.com/

你可能感兴趣的文章
NSDateFormatter NSDateComponents iphone 时间格式详解
查看>>
渐隐渐现效果代码
查看>>
iOS-ssh无密码登入设置
查看>>
Vi使用指南
查看>>
旋转动画 uiview animation rotate
查看>>
[iOS] iphone检测耳机插入/拔出
查看>>
IOS 定位服务
查看>>
IOS4+ 发短信
查看>>
RunLoop的原理和应用
查看>>
plist文件,Property List 文件
查看>>
iPhone在scrollview中双击定点放大的代码
查看>>
修改 ios 状态栏
查看>>
创建自定义的释放池 管理内存
查看>>
去除Array中重复对象
查看>>
对NString进行nil,null 的判断
查看>>
NSLocalNotification的用法示例
查看>>
NSLog输出类型的标示符
查看>>
邮箱验证
查看>>
ASIHTTPRequest 详解, http 请求终结者
查看>>
ASIHTTPRequest缓存
查看>>