Re: [rt-users] rt3.8.17 / 4.2.6 / nginx and document-root '/rt'

2015-01-13 Thread Torsten Brumm
Wow, thanks! It's next in Quere here.

Von meinem iPhone gesendet

> Am 14.01.2015 um 08:43 schrieb Daniel Schwager :
> 
> Hi all,
> 
>> thanks for this information - there's the fix - important
>> lines are "location" and "rewrite" - see (1).
> 
> I updated to rt 4.2.6 - now, the combination of rt / nginx / fastcgi / 
> document-root '/rt' does not work again.
> 
> My goal is to map a RT with nginx to a URL like 
> "http://www.domain.de:8080/rt"; (instead of "http://www.domain.de:8080";)
> 
> Tonight, I played around and found the following working setup:
> 
> /etc/nginx/conf.d/rt4.conf
> 
> server {
> 
>listen   8080;
>server_name  host.domain.de;
>root /tmp;
> 
># /opt/rt4/etc/RT_SiteConfig.pm
>   
>   
>   
>#   Set($WebDomain, "host.domain.de"); 
>   
>   
>   
>#   Set($WebPort , 8080);  
>   
>   
>   
>#   Set($WebPath , "/rt"); 
>   
>   
>   
>#   Set(@ReferrerWhitelist, qw(extranet.domain.de:443 host.domain.de:8080 
> ));   
>   
>
> 
>#  
>   
>   
>   
>#  
>   
>   
>   
>#  
>   
>   
>   
>location  / {
> 
>###   
>   
>   
>   
># 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_FILENAME $request_filename;
>  fastcgi_param SCRIPT_NAME $fastcgi_script_name;
>  fastcgi_param REQUEST_URI $request_uri;
>  fastcgi_param DOCUMENT_URI$document_uri;
>  fastcgi_param DOCUMENT_ROOT   $document_root;
>  fastcgi_param SERVER_PROTOCOL $server_protocol;
> 
>  fastcgi_param GATEWAY_INTERFACE   CGI/1.1;
>  fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
> 
>  fastcgi_param REMOTE_ADDR $remote_addr;
>  fastcgi_param REMOTE_PORT $remote_port;
>  fastcgi_param SERVER_ADDR $server_addr;
>  fastcgi_param SERVER_PORT $server_port;
>  fastcgi_param SERVER_NAME $server_name;
> 
>  fastcgi_param HTTPS   $https;
> 
>  # PHP only, required if PHP was built with 
> --enable-force-cgi-redirect   
>   
> 
>  fastcgi_param REDIRECT_STATUS 200;
>###   
>   
>   
>   
> 
>fastcgi_pass   unix:/opt/rt4/var/fastcgi.sock;
> 
>fastcgi_param   SCRIPT_NAME "/rt";
>fastcgi_param   PATH_INFO $uri;
> 
> }
> 
> }
> 

Re: [rt-users] rt3.8.17 / 4.2.6 / nginx and document-root '/rt'

2015-01-13 Thread Daniel Schwager
Hi all,

> thanks for this information - there's the fix - important
> lines are "location" and "rewrite" - see (1).

I updated to rt 4.2.6 - now, the combination of rt / nginx / fastcgi / 
document-root '/rt' does not work again.

My goal is to map a RT with nginx to a URL like "http://www.domain.de:8080/rt"; 
(instead of "http://www.domain.de:8080";)

Tonight, I played around and found the following working setup:

/etc/nginx/conf.d/rt4.conf

server {

listen   8080;
server_name  host.domain.de;
root /tmp;

# /opt/rt4/etc/RT_SiteConfig.pm 

 
#   Set($WebDomain, "host.domain.de");  

 
#   Set($WebPort , 8080);   

 
#   Set($WebPath , "/rt");  

 
#   Set(@ReferrerWhitelist, qw(extranet.domain.de:443 host.domain.de:8080 
)); 
   

#   

 
#   

 
#   

 
location  / {

###

 
# 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_FILENAME $request_filename;
  fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  fastcgi_param REQUEST_URI $request_uri;
  fastcgi_param DOCUMENT_URI$document_uri;
  fastcgi_param DOCUMENT_ROOT   $document_root;
  fastcgi_param SERVER_PROTOCOL $server_protocol;

  fastcgi_param GATEWAY_INTERFACE   CGI/1.1;
  fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

  fastcgi_param REMOTE_ADDR $remote_addr;
  fastcgi_param REMOTE_PORT $remote_port;
  fastcgi_param SERVER_ADDR $server_addr;
  fastcgi_param SERVER_PORT $server_port;
  fastcgi_param SERVER_NAME $server_name;

  fastcgi_param HTTPS   $https;

  # PHP only, required if PHP was built with 
--enable-force-cgi-redirect 


  fastcgi_param REDIRECT_STATUS 200;
###

 

fastcgi_pass   unix:/opt/rt4/var/fastcgi.sock;

fastcgi_param   SCRIPT_NAME "/rt";
fastcgi_param   PATH_INFO $uri;

 }

 }


rt-server.fcgi was called like this:
/opt/rt4/sbin/rt-server.fcgi --pidfile=/opt/rt4/var/fastcgi.pid 
--socket=/opt/rt4/var/fastcgi.sock 2> /dev/null


Maybe, I can help other admins in the future not to spend that much time 
searching for a working solution.

regards
Danny







smime.p7s

Re: [rt-users] problem in RT

2015-01-13 Thread Alex Peters
If I understand you correctly, you need to make your user "privileged."
Unprivileged users are forced to use the Self Service area.

I don't know what you mean by 'edit "username" to "user"'.  Are you trying
to change the visible wording on the login page?

On Wed, 14 Jan 2015 12:56 am Shahab Sharifzadeh  wrote:

>
> Hi
> When I change the login page ( for example I want to edit "username" to
> "user" ) I have a problem, when I want to login to RT with every device I
> have redirected to selfservice automatically. Please help me that why this
> happened?
> Thanks for your attention.
>
>


Re: [rt-users] Wild Card Question

2015-01-13 Thread Bill




William Culp  gmail.com> writes:







> 



> HelloIs there a way that I can use a wild card in one of our searches?  I 

have multiple queues that all start with the same character.  I would like 

to search all of those queues without having to modify the search every 

time I add a new queue.ThanksBillRT 4.5.5



> 



> 



> 



> Final RT training for 2012 in Atlanta, GA - October 23 & 24



>   http://bestpractical.com/training



> 



> We're hiring! http://bestpractical.com/jobs



> 



Hello







I have tried the solutions given, but they fail.







In my Advanced Search I used:







Queue LIKE '%Bob%'







My hope was that I would get all the queues with Bob in it.







Instead...There was an error parsing your search query







We constructed all of our queues around 4 different sites.  I would like to 

be able to filter around each site.  Instead I have to modify all my 

Searches when I add or modify the queues.







Help appreciated.







Bill











[rt-users] problem in RT

2015-01-13 Thread Shahab Sharifzadeh

Hi
When I change the login page ( for example I want to edit "username" to "user" 
) I have a problem, when I want to login to RT with every device I have 
redirected to selfservice automatically. Please help me that why this happened?
Thanks for your attention.