Now if I click on supporto.XXXXXX.it, the customer user is automatically redirected on agent page. I’d like automatically redirect the customer on customer page (otobo/customer.pl).
I have tryed to change FQDN in otobo system but doesn’t works fine.
we are thinking about making this easier, especially as AFAIK this was a simple SysConfig setting in OTRS 6. Fpr now we recomment a bit more convoluded way. The default page can indeed be set in the nginx configuration. Doing this in the running works, but your changes would be lost after a restart of the container. Therefore the config should be changed in a volume, which will persist when the container is stopped and started again.
from the screenshots I gather that you have created a volume and that you have adapted the custom config file. Did you also adapt the file .env ? If yes, you can check your Nginx container.
bes:~/devel/OTOBO/otobo-docker (rel-10_0)$ docker exec -it otobo_nginx_1 bash
root@e1ce50e91562:/etc/nginx# more /etc/nginx/config/template-custom/otobo_nginx.conf.template
more: stat of /etc/nginx/config/template-custom/otobo_nginx.conf.template failed: No such file or directory
root@e1ce50e91562:/etc/nginx# exit
exit
bes:~/devel/OTOBO/otobo-docker (rel-10_0)$
In my installation I don’t have a custom config installed. But you should see your adapted config. If the custom config looks fine and the redirect still does not work you can try first to restart the container.
After setting up the volume, the adapted configuration must be activated. The new volume is set up in docker-compose/otobo-nginx-custom-config.yml. Therefore this file must be added to COMPOSE_FILE. Then Nginx must be directed to use the new config. This is done by setting NGINX_ENVSUBST_TEMPLATE_DIR in the environment. In order to achieve this, uncomment or add the following lines in your .env file:
one thing I noticed in your config is that the redirect is set up for a prefix match on ‚/‘. It propably should be an exact match as set up by location = / { ... }.
Also I’m not sure how the problem manifests itself. Is nginx not starting up? Or is only the redirect not working? Are there error messages in the nginx log. The log can be inspected with docker-compose logs nginx.
Ah, this time you need to run the command on the Docker host, not in the Docker image. Specifically you must run docker-compose logs nginx in the directory otobo-docker. as that command needs the information from the file .env.
OK, we are getting closer. The service nginx is not running. This means that access via https://localhost/otobo/index.pl should not work. I just saw that in your first mail you mention http://www.supporto.XXXXX.it. But because you mentioned nginx I just assumed that you are running with SSL support.
The first question is whether you need, or want, SSL support. Both scenarios are supported.
SSL support is wanted: your .env file seems to be strange. Could you run diff .env .docker_compose_env_https and mask out the sensitive parts?
SSL support is not wanted: nginx is not needed at all. Replace ‚otobo/index.pl‘ with ‚otobo/customer.pl‘ around line 445 in the file /opt/otobo/bin/psgi-bin/otobo.psgi which is available in the container web. As a sanitiy check you can also do a diff .env .docker_compose_env_http
this clarifies things. As you are not using SSL in your test installation, you are also not using nginx there. Subsequently, any changes to the nginx config won’t have any effect.
It makes perfect sense to test config changes first in the test system. This can be achieved by using nginx in the test system as well. This can be achieved by basing the .env in your test system on .docker_compose_env_https and to activate a custom nginx config. You can choose whether you want to add certificates to your test installation. The alternative would be to change the listen directives in otobo_nginx.conf.template in order to support only HTTP.
Wir verwenden Cookies, um diese Website optimal gestalten und laufend verbessern zu können. Für Analyse und Statistik nutzen wir Google Analytics (anonymisiert).
Unsere Website verwendet Cookies. Cookies sind kleine Textdateien, die beim Aufruf von Websites im Internetbrowser bzw. vom Internetbrowser auf Ihrem Endgerät gespeichert werden. Diese Cookies enthalten eine charakteristische Zeichenfolge, die eine eindeutige Identifizierung des Browsers beim erneuten Aufrufen der Website ermöglichen.
Sie können das Setzen von Cookies jederzeit über eine entsprechende Einstellung in Ihrem Internetbrowser verhindern. Bereits gesetzte Cookies können jederzeit manuell oder automatisiert gelöscht werden. Dies ist in allen gängigen Internetbrowsern möglich. Wird das Setzen von Cookies im Browser deaktiviert, sind unter Umständen nicht alle Funktionen der Website vollumfänglich nutzbar.
Wir gehen grundsätzlich sehr sparsam mit Cookies um.
Detaillierte Informationen finden Sie in Abschnitt 4 unserer Hinweise zum Datenschutz.
Technisch erforderliche Cookies
Diese Cookies sind erforderlich, um die Darstellung dieser Website und einiger ihrer Features zu gewährleisten.
Deshalb bieten wir hier auch keine Möglichkeit an, diese Cookies zu deaktivieren.
Dessen ungeachtet können Sie jederzeit durch entsprechende Einstellungen in Ihrem Browser alle Cookies deaktivieren. Unter Umständen stehen Ihnen dann nicht mehr alle Funktionalitäten dieser Website zur Verfügung.
Weitere Informationen zu den gesetzten Cookies und zur Speicherdauer finden Sie in Abschnitt 4 unserer Hinweise zum Datenschutz.
Cookies von Google Analytics
Beim Besuch der Website werden Cookies von Google Analytics gesetzt, die eine Analyse der Benutzung unserer Website durch Sie ermöglichen. Ihre IP-Adresse wird dabei durch technische Vorkehrungen pseudonymisiert (IP-Anonymisierung und Deaktivierung der User-ID). Eine Zuordnung der Daten zum aufrufenden Nutzer ist daher nicht mehr möglich. Die Daten werden nicht gemeinsam mit anderen personenbezogenen Daten der Nutzer gespeichert.
Wenn Sie nicht möchten, dass wir Ihren Besuch auf unserer Website verfolgen, können Sie das Tracking in Ihrem Browser hier deaktivieren:
Hinweise zum Datenschutz
Detaillierte Informationen zum Einsatz von Cookies sowie unsere Datenschutzerklärung finden Sie hier: