OTRS suffix /otrs/ question

Moderator: crythias

Locked
schweppers
Znuny newbie
Posts: 8
Joined: 16 Jul 2012, 11:07
Znuny Version: 3.1.7

OTRS suffix /otrs/ question

Post by schweppers »

Hello,

i have OTRS installed using this howto:

http://wiki.otterhub.org/index.php?titl ... ossible%29

everything works as intended and adding new OTRS instances is trivial, but one thing i can't make is to remove the /otrs/ from url:

http://my.domain.com/ redirects to http://my.domain.com/otrs/ - how i could remove that /otrs/ from url ?


thanks upfront.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS suffix /otrs/ question

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
schweppers
Znuny newbie
Posts: 8
Joined: 16 Jul 2012, 11:07
Znuny Version: 3.1.7

Re: OTRS suffix /otrs/ question

Post by schweppers »

thanks.
schweppers
Znuny newbie
Posts: 8
Joined: 16 Jul 2012, 11:07
Znuny Version: 3.1.7

Re: OTRS suffix /otrs/ question

Post by schweppers »

any clue how to make it on nginx webserver? i tried to follow this howto you pasted link to, but i get:

2012/07/16 14:30:56 [error] 19558#0: *1 directory index of "/home/otrs1/otrs/var/httpd/htdocs" is forbidden, client: 192.168.1.5, server: support.orthomedicor.com, request: "GET / HTTP/1.1", host: "example.net"

and this is my vhost configuration for nginx:

server {
listen 80;
server_name example.net;
root /home/otrs1/otrs/var/httpd/htdocs;
index index.html;
location / {
gzip on;
alias /home/otrs1/otrs/var/httpd/htdocs;
# alias /home/otrs1/otrs/bin/fcgi-bin;
}
# location ~ ^/otrs/(.*\.pl)(/.*)?$ {
location ~ ^/(.*\.pl)(/.*)?$ {
gzip off; #gzip makes scripts feel slower since they have to complete before getting gzipped
fastcgi_pass unix:/var/run/otrs/example.net.$1.sock;
fastcgi_index index.pl;
fastcgi_param SCRIPT_FILENAME /home/otrs1/otrs/bin/fcgi-bin/$1;
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 GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
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 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;
}
}
schweppers
Znuny newbie
Posts: 8
Joined: 16 Jul 2012, 11:07
Znuny Version: 3.1.7

Re: OTRS suffix /otrs/ question

Post by schweppers »

bump
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS suffix /otrs/ question

Post by crythias »

look at index.html

it might have a clue.

What does it do?

Code: Select all

    <meta http-equiv="refresh" content="0; URL=/otrs/index.pl" />
do you think that sounds right? probably not. But index.pl doesn't exist in htdocs either ...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked