OTRS site served from all my subdomains

Moderator: crythias

Post Reply
OTRS newbie
Posts: 1
Joined: 16 Sep 2018, 17:53
OTRS Version?: OTRS6.0
Real Name: David Smith

OTRS site served from all my subdomains

Post by daveybops » 10 Oct 2018, 12:56

I was sure I had found the solution while searching this site a couple of weeks ago, and now that I want to apply it, I can't find it again!
I host a few sites from my VPS on OVH; wordpress on www.mysite.com PHPMyAdmin on phpma.mysite.com NextCloud on nc.mysite.com and otrs on otrs.mysite.com/otrs/

However, otrs is available on all my sites. I can go to anysubdomain.mysite.com/otrs/ and the otrs interface is displayed instead of 404 Not Found. I want it to be served only from otrs.mysite.com/otrs/
I followed the install-from-source instructions for Debian/Ubuntu in the OTRS 6 instruction manual. I suspect something needs to be done to zzz_otrs.conf in /etc/apache2/sites-available/

Note that otrs.mysite.com/index.html forwards to otrs.mysite.com/otrs/index.pl and SSL is enabled via Lets-Encrypt using their app certbot. For this, I have simple config files otrs.conf and otrs-le-ssl.conf with the virtual server and ServerName settings applied. Should the contents of zzz_otrs.conf be somehow merged with otrs.conf and otrs-le-sl.conf

Ubuntu 18.04, 1 Core Xeon, 4GB RAM, SSD.

Any assitance, greatly appreciated.

User avatar
OTRS expert
Posts: 75
Joined: 27 Aug 2018, 13:50
OTRS Version?: Community
Real Name: Christian Clavet
Company: Tact Group

Re: OTRS site served from all my subdomains

Post by christianclavet » 10 Oct 2018, 22:10

Hi, I think you would need to check how to map subdomain to a url with Apache instead and check the OTRS definition that is created there when you install OTRS.

I've done a quick search on google and you could check this one:
https://www.digitalocean.com/community/ ... -directory
This will show you how to map a subdomain to a local directory. Check how the configuration of OTRS and done, you will need to create a definition for each of your subdomain and disable the the one generated by OTRS.
OTRS Community 6.0.11
Debian 9.0


Post Reply