Using Opencast on subdomain

69 views
Skip to first unread message

Tom B

unread,
Dec 21, 2021, 7:14:10 AM12/21/21
to Opencast Users

Dear opencast-community,

I am currently working on a project from my university that wants to use classroom videos for educational purpose. Because our budget is very limited, we only have one server, with the DNS project.uni-leipzig.de, on which we need to install opencast, moodle and a typo3 landing page.

We would like the domain structure to be like this.
opencast.project.uni-leipzig.de = for the Opencast instance
moodle.project.uni-leipzig.de = for the moodle instance
project.uni-leipzig.de = for the landing page

Currently we are struggling to find a way to operate opencast on this subdomain. I already found a Google-Groups conversation from 2017 where it was stated that opencast is not meant to run on a subdomain. Is this still the case? If not, which files would need editing to make it work?

 

I would be grateful for any help regarding this problem.


Regards,

Tom

 

Maximiliano Lira Del Canto

unread,
Dec 21, 2021, 7:36:34 AM12/21/21
to Opencast Users, tombo...@gmail.com
Hi Tom, welcome to the community.


There are no problems to run opencast in a subdomain, a lot of people run their instances in that scheme.

I recommend you to look into this guide, it will help you on how to configure a reverse proxy with HTTPS, https://docs.opencast.org/r/11.x/admin/#configuration/https/


Merry Christmas


Max

Tom B

unread,
Dec 21, 2021, 8:32:33 AM12/21/21
to Opencast Users, Maximiliano Lira Del Canto, Tom B

Hi Max, thanks for the quick response, especially this close before Christmas.

I already tried the steps on the site you send but maybe I did something wrong.

1.      In nginx sites-enabled create a opencast.conf file in which I copy the http and https setup.

2.      Replace example.opencast.org with opencast.project.uni-leipzig.de

3.      Add the LetsEncrypt certificate made for project.uni-leipzig.de

4.      Restart nginx

5.      In /etc/custom.properties change put org.opencastproject.server.url=https://opencast.project.uni-leipzig.de

6.      Start activemq then elasticsearch and lastly opencast

Am I missing something? Because when I start opencast the installation isn’t working.

https://studservunileipzigde-my.sharepoint.com/:u:/g/personal/tb65faza_studserv_uni-leipzig_de/EasEquWA3OhLgL1yge0baT4BHKbJ1Wx-nvgHuixZcCwh3w?e=5xRjFC

This is the opencast.log I am getting when starting opencast.

Lars Kiesow

unread,
Dec 21, 2021, 9:42:53 AM12/21/21
to Tom B, us...@opencast.org, Maximiliano Lira Del Canto
Hi Tom,
I'm assuming you are using Debian or Ubuntu as operating system. That
means the following guide is not exactly the same (I used CentOS as OS)
but it may still help you to see how to install opencast in 30 min:

https://video.ethz.ch/events/opencast/2021/graz/8f1da869-8775-4811-bcf2-84843a780b20.html

The steps on Debian/Ubuntu are more or less ithe same and you may spot
something you have missed.

Apart from that, my two suggestions would be to check if your Opencast
is up and running locally using curl on your server (you should get a
redirect to the login page):

curl -I http://localhost:8080

And to check if your Nginx syntax is correct using:

sudo nginx -t

Best regards,
Lars


PS: The post your are referring to isn't actually about sub-domains but
about sub-paths. E.g. mydomain.com/opencast

Tom B

unread,
Dec 21, 2021, 12:20:00 PM12/21/21
to Opencast Users, Lars Kiesow, us...@opencast.org, Maximiliano Lira Del Canto, Tom B

Hello Lars,

I already installed opencast via this tutorial and on project.uni-leipzig.de its running perfectly fine. But when I change the URL in the installation process to project.uni-leipzig.de/opencast I reach the login-overlay and when I then try to log-in I get a Error 404. I attached some Screenshots.

sudo nginx -t also gives that the build was successful 

I also get redirected to the login-page with curl -I http://localhost:8080

One strange behaviour I have is that I go to the login-page with project.uni-leipzig.de/opencast enter admin and password then get the error404 go back re-enter admin and password and then get logged in. But when I then try to reach opencast over project.uni-leipzig.de/opencast again I instantly get the error404. Only when I then delete cookies and website -data in my browser I reach the login-page with project.uni-leipzig.de/opencast again but the cycle repeats. 


Regards,

Tom

after login.PNG
working.PNG

Lars Kiesow

unread,
Dec 21, 2021, 5:06:53 PM12/21/21
to us...@opencast.org
Hi Tom,

> But when I change the URL in the installation process to
> project.uni-leipzig.de/opencast

This makes me wondering, are you actually asking about sub-domains?
This seems like you want to use a sub-path. That's not easily possible.

For example, project.uni-leipzig.de is a dub-domain of the domain
uni-leipzig.de. You would have further sub-domains like
opencast.project.uni-leipzig.de and moodle.project.uni-leipzig.de.
You can also have multiple donains pointing to a single server.

Using that with Opencast is not problem.

It seems though, that you are trying to use sub-paths:
project.uni-leipzig.de/opencast. That's not easily possible and you
would probably need to work with proxy filters which I really wouldn't
recommend and probably involves a lot of work.

–Lars



On Tue, 21 Dec 2021 09:20:00 -0800 (PST)

Tom B

unread,
Dec 21, 2021, 6:11:58 PM12/21/21
to Opencast Users, Lars Kiesow

Hi Sven,

Yes, it seems like I got a bit confused there. I want to set it up as a subdomain opencast.project.uni-leipzig.de. I also just realised that I need to make a request to the university to firstly add this subdomain to the domain.  After that I should be able to make it work. Sorry about the inconvenience. I think its pretty obvious that I am new to the topic.

Thanks for the help and time you and Max gave me anyway.

 

Best regards and merry christmas,

Tom

Reply all
Reply to author
Forward
0 new messages