Try my config for Osticket 1.7, nginx+php-fpm
I create that's config just for testing
server {
listen 80;
server_name test.com;
access_log /var/log/nginx/tickets.access.log;
error_log /var/log/nginx/tickets.error.log info;
index index.php;
root /var/www/ticket;
client_max_body_size 5M;
keepalive_timeout 0;
fastcgi_read_timeout 120;
fastcgi_send_timeout 60;
index index.php index.html;
autoindex off;
gzip on;
gzip_types text/plain text/css application/x-javascript text/javascript
application/javascript application/json application/xml text/x-component
application/rss+xml text/xml;
sendfile on;
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;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_intercept_errors on;
}
}
2016-05-11 23:03 GMT+03:00 Alex Hall <ahall@autodist.com>:
> Hi all,
> I'm using Nginx (obviously), but I want to try OSTicket. The only
> supported servers for it are, for whatever reason, Apache and IIS. I hate
> IIS, and I don't know how I'd run Apache and Nginx together (plus Nginx
> seems much simpler than Apache to me). Does anyone have OSTicket working
> under Nginx by any chance?
>
> I've followed this recipe:
> https://www.nginx.com/resources/wiki/start/topics/recipes/osticket/
> but I can't get it to work. It hits a wall during installation, saying
> that it can't create configuration settings (#7). If anyone has this up and
> running successfully, I'd love to know how you did it. Hopefully the
> OSTicket team will eventually support Nginx natively, but I'm not holding
> my breath.
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ahall@autodist.com
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx