通达oa 绑定多个域名
nginx环境下,配置方法如下:
1、在myoa\nginx\conf\nginx.conf中添加以下内容:
#bbs
server {
listen 8081;
server_name localhost;
root D:\yourls;
index index.php index.html index.htm;
include common.conf;
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:8002
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8002;
fastcgi_index index.php;
include fastcgi.conf;
}
}
2、service.ini中添加:
[OfficeFPM10]
Listen = 8002
ProcessNumber = 2
FastCGICmd = D:\MYOA\bin\php-cgi.exe -c D:\MYOA\bin\yourls.ini
3、在myoa\bin下拷贝一份该文件php.ini,并重命名为yourls.ini,并修改
路径如下:
error_log = D:\MYOA\logs\php_error_bbs.log
include_path = ".;D:\yourls"
doc_root = D:\yourls
重启office_web服务生效。
1、在myoa\nginx\conf\nginx.conf中添加以下内容:
#bbs
server {
listen 8081;
server_name localhost;
root D:\yourls;
index index.php index.html index.htm;
include common.conf;
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:8002
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8002;
fastcgi_index index.php;
include fastcgi.conf;
}
}
2、service.ini中添加:
[OfficeFPM10]
Listen = 8002
ProcessNumber = 2
FastCGICmd = D:\MYOA\bin\php-cgi.exe -c D:\MYOA\bin\yourls.ini
3、在myoa\bin下拷贝一份该文件php.ini,并重命名为yourls.ini,并修改
路径如下:
error_log = D:\MYOA\logs\php_error_bbs.log
include_path = ".;D:\yourls"
doc_root = D:\yourls
重启office_web服务生效。