how to change otrs as another name in URL
how to change otrs as another name in URL
I want to change "otrs" to "mycrm" in the url. Currently it is http://127.0.0.1/otrs/index.pl but I want this as http://127.0.0.1/mycrm/index.pl.
I tried but didn't find any solution regarding the same. Please suggest if anybody know the same.
I tried but didn't find any solution regarding the same. Please suggest if anybody know the same.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: how to change otrs as another name in URL
You have to configure the webbrowser and change the Kernel/Config.pm: Add to Config.pm and change to in the apache config...
Code: Select all
$Self->{ScriptAlias} = 'mycrm/';
Code: Select all
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Code: Select all
ScriptAlias /mycrm/ "/opt/otrs/bin/cgi-bin/"
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: how to change otrs as another name in URL
Ist also possible to remove the Folder / Alias? We want to use just h t t p : / /domainname.tld/
I dont think that $Self->{ScriptAlias} = ''; and ScriptAlias / "/opt/otrs/bin/cgi-bin/" will work.
I dont think that $Self->{ScriptAlias} = ''; and ScriptAlias / "/opt/otrs/bin/cgi-bin/" will work.
Re: how to change otrs as another name in URL
Hi,
here you go, please ask if you have problems because I copied only the config parts that I changed
here you go, please ask if you have problems because I copied only the config parts that I changed
Code: Select all
# SysConfig
ScriptAlias = ""
Code: Select all
# Apache
Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
ScriptAliasMatch ^/(.*)\.pl /opt/otrs/bin/cgi-bin/$1.pl
RewriteEngine On
# Rewrite the start page to the customer frontend
RewriteCond %{REQUEST_URI} ^(/)?$
RewriteRule ^(.*)$ /customer.pl [PT,L]
# Rewrite old style URLs to new URLs
RewriteRule ^/otrs/(.*)$ /$1 [R=301,L]
<LocationMatch ^/.*\.pl>
ErrorDocument 403 /index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</LocationMatch>
Re: how to change otrs as another name in URL
This Works! very nice, thank you very much!
When opening the url, ill get the agent interface, the nicest way would be that there is the customer login. I see there is a rewrite option for it and i added it, rewrite is enabled and apache restart but it wont work for now hm.
When opening the url, ill get the agent interface, the nicest way would be that there is the customer login. I see there is a rewrite option for it and i added it, rewrite is enabled and apache restart but it wont work for now hm.
Re: how to change otrs as another name in URL
Hmmmm, try this Rewrite instead of the two lines that I gave you:
This does nothing different though, only saves a line.
Maybe you have something from the default config in there, the RewriteRule works fine on my system. I also have additional Rewrites before those that rewrite internal Proxy IPs to the agent frontend.
Edit: Maybe you are confused because the Rewrite those a PT (PassThrough), meaning it will proxy it internally. It won't redirect to the /customer.pl but will show the content of it.
Code: Select all
RewriteRule ^(/)?$ /customer.pl [PT,L]
Maybe you have something from the default config in there, the RewriteRule works fine on my system. I also have additional Rewrites before those that rewrite internal Proxy IPs to the agent frontend.
Edit: Maybe you are confused because the Rewrite those a PT (PassThrough), meaning it will proxy it internally. It won't redirect to the /customer.pl but will show the content of it.
Re: how to change otrs as another name in URL
Im still getting just the Agent interface using http : / / ipaddress or http : / / ipaddress /