polr icon indicating copy to clipboard operation
polr copied to clipboard

Subfolder install

Open Johnnybegood90 opened this issue 6 years ago • 7 comments

I would like to install Polr in a subfolder, how to, I would like my installation to look like this: mydomain.example/polr/

Johnnybegood90 avatar May 08 '18 00:05 Johnnybegood90

You should be able to set this in your web server configuration. Polr will work fine with a prefix.

overint avatar May 08 '18 09:05 overint

hello, i got one polr running fine with nginx at /var/www/polr on a domain name ! i try to install another polr pointing to another domin name so i download the project to another folder /var/www/polr-next but i cannot somehow make this one run (created another database for it in mysql, run compose in the folder, setup another nginx server conf for it ) any help ? it's possible right ? THANKS

GPConnect avatar Jun 26 '18 21:06 GPConnect

You need to provide more information. What errors/issues are you having?

overint avatar Jun 26 '18 21:06 overint

i do not see any errors where can i look for them ? maybe it's a nginx conf issue ? i just copied from the first one running and made change to the server name, polr root location and ssl path !

GPConnect avatar Jun 26 '18 22:06 GPConnect

We can't help you unless you provide us with a detailed recount of what you have done and what the issues are.

overint avatar Jun 26 '18 22:06 overint

it's a cloudflare proxy issue !

GPConnect avatar Jul 05 '18 18:07 GPConnect

I'm also trying to install Polr in a subfolder of an existing domain and I used the setup option 2 to run the setup. I can then call https://www.example.com/go/ which opens the interface in the browser. However, it is not functional because none of the resources (css, javascript, etc.) get loaded.

The reason for that is that those resources get linked from the html file like this:

<link rel="stylesheet" href="/css/default-bootstrap.min.css">
<link href="/css/base.css" rel="stylesheet">
<link href="/css/toastr.min.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<script src="/js/constants.js"></script>
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/angular.min.js"></script>
<script src="/js/toastr.min.js"></script>
<script src="/js/base.js"></script>

The paths to those resources need to be prefixed by /go and I guess that should be configured somewhere but couldn't find any option to do so.

Note, I tried setup option 1 before by calling https://www.example.com/go/setup or https://www.example.com/go/setup/ but they do redirect my request to https://www.example.com/setup which of course doesn't exist.

So, maybe Polr doesn't support subpath installation? Or we are missing the documentation on how to tell the app that there is a patch prefix.

jurgenhaas avatar Oct 14 '19 15:10 jurgenhaas