|
我nginx配置了DZ和UC,UC已经安装完了,现在准备安装DZ,选择了连结现有的UC,但是报错了,我的nginx配置的listen是sock,php也是sock,但是不知道为什么连结不上
- server {
- listen unix:/www/a/dz/dz.sock;
- server_name _;
- access_log /etc/nginx/logs/dzonionaccess.log;
- error_log /etc/nginx/logs/dzonionerror.log;
- location / {
- root /www/DiscuzX/upload/;
- index index.php index.html index.htm;
- }
- location ~ \.php$ {
- root /www/DiscuzX/upload/;
- fastcgi_pass unix:/run/php/php8.3-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- server {
- listen unix:/www/a/ucenter/ucenter.sock;
- server_name _;
- access_log /etc/nginx/logs/ucenteronionaccess.log;
- error_log /etc/nginx/logs/ucenteronionerror.log;
- location / {
- root /www/UCenter/upload/;
- index index.php index.html index.htm;
- }
- location ~ \.php$ {
- root /www/UCenter/upload/;
- fastcgi_pass unix:/run/php/php8.3-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
复制代码
|
|