Hi,
I just want change the url 192.168.0.1/otrs to 192.168.0.1/
I change em the otrs config the scriptalias to " "
The apache otrs.conf I change
ScriptAlias / "/srv/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/srv/otrs/var/httpd/htdocs/"
But not work
apache log:
[Thu Aug 06 18:39:32.025906 2020] [alias:warn] [pid 1832] AH00671: The Alias directive in /etc/apache2/conf.d/otrs.conf at line 6 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Aug 06 18:40:08.586435 2020] [cgi:error] [pid 1853] [client 192.168.100.1:22720] AH02811: script not found or unable to stat: /srv/otrs/bin/cgi-bin/otrs-web, referer: http://192.168.100.25/index.pl
What can i Do?
Remove /otrs from URL
Moderator: crythias
-
- Znuny newbie
- Posts: 1
- Joined: 26 Sep 2019, 16:44
- Znuny Version: 6.22
- Real Name: Cleber
-
- Znuny newbie
- Posts: 12
- Joined: 30 Apr 2020, 15:16
- Znuny Version: 6.0
- Real Name: Bernhard Schmalhofer
- Company: Bernhard Schmalhofer
- Location: Munich
- Contact:
Re: Remove /otrs from URL
I checked https://httpd.apache.org/docs/2.4/mod/mod_alias.html and there it is stated that the order of the directives is relevant. The first match wins. Therefore I would try to simple switch around the two directives.
There is also the system setting Frontend::WebPath . But I don't see how it would help in this situation.
Code: Select all
Alias /otrs-web/ "/srv/otrs/var/httpd/htdocs/"
ScriptAlias / "/srv/otrs/bin/cgi-bin/"
-
- Znuny Employee
- Posts: 132
- Joined: 13 Sep 2021, 09:38
- Znuny Version: Znuny 6.3.x
- Real Name: Shawn Beasley
- Company: Znuny
Re: Remove /otrs from URL
That and scriptalias is the system configuartion.