Forum

multiple services in subdirectories

Ivo
8 February 2016, 08:43
I need an example how to set up multiple services in subdirectories.

website.org = welcome page
website.org/owncloud = owncloud
website.org/XYZ =XYZ

Is it possible to set this up?

I can figure it out on my own I just need tips and suggestions.

Thanks
Hugo Leisink
8 February 2016, 09:41
That depends on the website you want to place in a directory. However, I advice against it. You better use multiple virtual hosts, like website.org, owncloud.website.org and xyz.website.org.
Ivo
8 February 2016, 16:37
mhhh, okay but can I use multiple virtual hosts with 1 normal ssl cert?
I used to use nginx because I only needed 1 cert with the subdirectory method. And wildcart certs are expensive and needed for your suggestion.

Can I use Letsencrypt (as wildcard) with multiple virtual hosts?

Why are you adviceing against it?

I did like to understand, from my perspective I am okay with the wildcard method as long as it works with Letsencrypt.

Thanks for your help.
And thanks for the awesome webserver. Happy I found it.
Hugo Leisink
8 February 2016, 16:46
Have you tried the directory based approach yet? What are your issues?
Ivo
8 February 2016, 16:51
I did not find a example how to do it...

I am new to hiawatha and do not know how to set subdirectories.
I was hoping to find an example to see the correct way to do it.

I checked Letsencrypt. No support for wildcard.
Hugo Leisink
8 February 2016, 16:52
You can use the Alias to map a directory to an actual directory on disk. Or you can simply copy the directory which contains the new website to the website root of your virtual host.
Ivo
8 February 2016, 16:53
thanks, gonna try out later.
This topic has been closed.