[rt-users] rt3.8.17 / nginx and document-root

Daniel Schwager Daniel.Schwager at dtnet.de
Wed Dec 24 08:21:32 EST 2014


because nginx ist about 20-30% faster than apache2, we tries to move to nginx. Our URL is http://<server-url>/rt
so WebPath  insode RT_SiteConfig.pm is set to "/rt".

Our current nginx config (1) works fine (but only in the document root http://<server-url>, but not with http://<server-url>/rt)

I'm not familiar with nginx and spent now about 4 hours trying to configure rt3+nginx to use http://<server-url>/rt as the base-url - but I was not able to manage it.

Maybe somebody show me how to configure RT/ngnix for a non-root URL ?


(1) /etc/nginx/conf.d/rt3.conf

server {
  listen       80;
  server_name  artee2.domain.de;

  root /opt/rt3/share/html;
  index index.html index.htm;

  location / {
    fastcgi_pass   unix:/opt/rt3/var/fastcgi.sock;

    include        /etc/nginx/fastcgi_params;
    fastcgi_param  QUERY_STRING       $query_string;
    fastcgi_param  REQUEST_METHOD     $request_method;
    fastcgi_param  CONTENT_TYPE       $content_type;
    fastcgi_param  CONTENT_LENGTH     $content_length;

    fastcgi_param   SCRIPT_NAME "";
    fastcgi_param   PATH_INFO $uri;

Viele Gruesse
Daniel Schwager

DT Netsolution GmbH   -   Taläckerstr. 30    -    D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager at dtnet.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2279 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141224/0798c1c9/attachment.bin>

More information about the rt-users mailing list