Forums | Mahara Community

Support /
Install Mahara on nginx in subdirectory


Andreas Goebel's profile picture
Posts: 1

26 January 2021, 20:48

Hi,

I'm moodle admin at a school. 

We have moodle running on our own server. I'd like to know, if it's possible to install mahara on that same server in the same vhost using a subdirectory, like

mymoodle.site/mahara

If possible: How can I do that? The nginx examples for reverse proxy configuration are for the root location, and as they grab all php, they will clash with the moodle installation for sure.

If not possible: Which way to go? New vhost on the same server?

Regards,

Andreas

Robert Lyon's profile picture
Posts: 757

01 April 2021, 10:45

Hi Andreas,

If I understand you problem correctly you are wanting two sites on the same vhost.

I don't think you can do this by having Mahara in a subdomain.

but you might be able to get it working if you have the Moodle and Mahara sites on different ports.

 

Something like:

https://serverfault.com/questions/753105/how-to-reverse-proxy-to-different-places-depending-on-subdomain-in-nginx

Where moodle.site goes to port x

and mahara.site goes to port y

Hope that helps

Robert

2 results