Best location for hosting files, new user coming from lighttpd

:uk:/:us: Message template (english)

My YunoHost server

Hardware: Rasp pi 4
YunoHost version: 11.2.8
I have access to my server : directly via keyboard and screen, and via SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

hi, I’m new to Yunohost, and have been using dietpi on a raspberry pi zero. I’ve been hosting a few webpages using lighttpd.

I like the idea of more applications, and the interface seems fantastic. I have noticed when playing around with Yunohost on a raspberry pi 4 that several of the applications require a different root directory.

Root
/admin
/Other apps

I’d like to host some tiddlywiki html files, but I also need a directories structure.

Root - index1.html base wiki file
/admin
/Other apps
/Site2 - index2.html site2 wiki file
/Site3 - index3.html site3 wiki file

specifically, what is the best location to store files so that a visitor can access:

Root site.com → index1.html
Root site.com/Site2 → index2.html
Root site.com/Site3 → index3.html

but I can still access the admin interface, and the other apps as well.

Welcome!

To serve static HTML or dynamic PHP pages, use a “My Webapp” app. One per site you want to serve.

1 Like

Yunohost doesn’t work like that.

Let’s say that you have 2 domains site1.com and site2.com.

Installing an app on the root domain of site1.com, the app will be reachable on that domain and you won’t be able to install another app on that domain but since they are static websites, it’s just a subfolder.

Installing multiple apps on site2.com is doable by defining a path “/site3” “/site4” etc… On that domain.

What’s an app? The yunohost catalog has a large choice of apps that you can use, you can check from the yunohost webadmin > applications > install. They are organised by category.

What do you need to install an app? You need to add a domain in the webadmin, follow the instructions to add the correct dns entries in your registrar dashboard and if your registrar allows the use of an api, check the yunohost documentation for configuring the ddns. Then generate the let’s encrypt certificate.

In your case, you will need to install my_webapp to the domain, enabling sftp and defining the correct php version.
You will have to upload your websites to the www folder of the app while having the site.com/site2 on a subfolder named site2 and so on
Good luck :crossed_fingers:

The “My WebApp” app isn’t available for some reason. Any tips? I installed the TiddlyWiki app, but I can’t add files. It looks like:

  1. I don’t have permission to access or install into /var/www
  2. I also don’t have permission to access /home/yunohost.app/tiddlywiki

See error below:


[GET] /apps/manifest?app=my_webapp&with_screenshot

YunoHost encountered an internal error

Really sorry about that.

You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:

Error: "500"

Action: "GET" /yunohost/api/apps/manifest?app=my_webapp&with_screenshot&locale=en

Error message:

Could not fetch source files, is the URL correct?

That’s weird. Try updating YunoHost?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.