Uberspace / lab

The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
https://lab.uberspace.de
Other
309 stars 412 forks source link

[Shaarli] add info on adding subdomain #920

Open thorstenmerl opened 3 years ago

thorstenmerl commented 3 years ago

I would be happy to get some help with setting up an external subdomain for shaarli. adding a domain and symlinking to the correct folder works. so it is possible to use mysub.domain.com to get to the home-directory of shaarli. But it is not possible then to click on any link internal link like "Tag Cloud" or "picture wall".

I tried to add a "root_url" in the data/config.json.php (as shown in the shaarli docs), but this didn't solve the problem.

My question: Could someone be so kind and add some explanation to the uberspace documentation for Shaarli?

Systemsemaphore commented 2 years ago

Had to cope with health issues. Sorry for necroing a 1-year-old issue :sweat_smile:

As guides have to follow the rules from the style guide, I'm not sure if I should edit the Shaarli guide. After reading https://blog.uberspace.de/die-sache-mit-den-virtuellen-documentroots/, my understanding is that everyone can decide for themselves if they want multiple Uberspace accounts or if they want to take the security risks involved with multiple projects on a single account. I would be happy if someone (maybe @luto ?) could tell me if the following steps should be added to the guide, as I don't want to violate any rules.

In your setting, to make internal links work, you have to edit the config.json.php in Shaarli's data folder and change the value for "header_link" from "\/shaarli", to "\/", After that you have to edit the .htaccess file in Shaarli's installation folder and outcomment the line # RewriteBase /

As I can already see from our mail conversation, this worked for both you and me, so the issue is solved.