Kovah / LinkAce

LinkAce is a self-hosted archive to collect links of your favorite websites.
https://www.linkace.org
GNU General Public License v3.0
2.59k stars 161 forks source link

Manual install: ablility to install Linkace in a subdirectory #264

Open Ailothaen opened 3 years ago

Ailothaen commented 3 years ago

Is your feature request related to a problem? Please describe. As now, it seems Linkace can only be installed at the root of a website: it is not really possible to install it in a subdirectory (example.com/linkace for example), because some elements, such as the CSS, are expected to load from the root:

20210418-210816-001968

Describe the solution you'd like A variable to set prior to install process, for example in the .env file, to specify the base path for the app

Describe alternatives you've considered Not really relevant. This would be a secondary feature, but still useful for those who do not have a lot of power over their environment (or just do not want to create a whole subdomain for Linkace)

Kovah commented 3 years ago

If you are using Apache, could you please check this article https://mark.biek.org/blog/2018/01/running-laravel-5-in-a-subdirectory/

Ailothaen commented 3 years ago

I am using Apache indeed. I applied what is being said in the article, and in the meantime fixed something on my side that was preventing .htaccess to be read...

Here is what is happening now:

Here is more detail:

20210418-232932-001969 20210418-232941-001970

(By the way, is there any way to contribute on the documentation? Since I run into several issues while installing, I feel like it would be good if I could mention them somewhere on the install documentation)

Kovah commented 3 years ago

I will have a look but the issue has a low priority for me. Running apps in sub directories has led to countless issues in the past.

The documentation can be found here: https://github.com/Kovah/LinkAce-Website

piegamesde commented 1 year ago

I'm trying to get LinkAce to work in a subdirectory too, but using Nginx. Please don't drop support for this feature, even if it may be somewhat niche. You are already using a framework that supports this so LinkAce should not really have to deal with any of this anyways …