polr
polr copied to clipboard
Subfolder install
I would like to install Polr in a subfolder, how to, I would like my installation to look like this: mydomain.example/polr/
You should be able to set this in your web server configuration. Polr will work fine with a prefix.
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
You need to provide more information. What errors/issues are you having?
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 !
We can't help you unless you provide us with a detailed recount of what you have done and what the issues are.
it's a cloudflare proxy issue !
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.