Hi, I'm using osticket 18.1, I followed the nginx config above and https is running and the web can also appear, but I'm having a problem that the agent user access that I usually use is rejected, if I return to the http config the access is successful, is there any solution for this?
# HTTP
server {
listen 80;
server_name mydomain.com;
return 301 https://$server_name$request_uri;
}
#HTTPS
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mydomain.com;
# SSL
ssl_certificate /etc/ssl/myssl.crt;
ssl_certificate_key /etc/ssl/myssl.key;
# Directory osticket
root /var/www/html/intix;
# Loging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Config osticket
index index.php index.html;
set $path_info "";
location ~ /include {
deny all;
return 403;
}
if ($request_uri ~ "^/api(/[^\?]+)") {
set $path_info $1;
}
location ~ ^/api/(?:tickets|tasks).*$ {
try_files $uri $uri/ /api/http.php?$query_string;
}
if ($request_uri ~ "^/scp/.*\.php(/[^\?]+)") {
set $path_info $1;
}
location ~ ^/scp/ajax.php/.*$ {
try_files $uri $uri/ /scp/ajax.php?$query_string;
}
location / {
try_files $uri $uri/ index.php;
}
location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_param PATH_INFO $path_info;
}
}