Quantcast
Channel: Software Support - PKP Community Forum
Viewing all articles
Browse latest Browse all 17646

OJS 3 behind reverse proxy - how to achieve?

$
0
0

@hermann wrote:

Hi everyone,

I am trying to run OJS 3 behind a reverse proxy. I terminate SSL at the reverse proxy and do the communication to the backend in http (quite a standard setup I think).
As I saw that there is the possibility to configure a base_url in config.inc.php I thought this should be easy.

But it's not. I see that the value for base_url is unfortunately almost never used to "calculate" URLs: When I look at the source code of the start-page I see none of the URLs for links, css or scripts uses https which renders the page useless as browsers do not load script- and css files over http into a page loaded with https. Even setting base_url[index] does not help here. Links get https as scheme this way but not the scripts and stylesheet (these are all the links in the startpage):

<link rel="stylesheet" href="https://MYSITE/ojs3/$$$call$$$/page/page/css?name=stylesheet" type="text/css" />
<a href="https://MYSITE/ojs3/index" class="is_img">
<img src="http://MYSITE/ojs3/templates/images/structure/logo.png" alt="Open Journal Systems" title="Open Journal Systems" width="180" height="90" />
<a href="https://MYSITE/ojs3/user/register">
<a href="https://MYSITE/ojs3/login">
<a href="https://MYSITE/ojs3/user/setLocale/de_DE?source=%2Fojs3%2F">
<a href="https://MYSITE/ojs3/user/setLocale/en_US?source=%2Fojs3%2F">
<a href="https://MYSITE/ojs3/about/aboutThisPublishingSystem">
<img alt="Open Journal Systems" src="http://MYSITE/ojs3/templates/images/ojs_brand.png">
<img alt="Public Knowledge Project" src="http://MYSITE/ojs3/lib/pkp/templates/images/pkp_brand.png">
<script src="http://MYSITE/ojs3/lib/pkp/lib/components/jquery/jquery.min.js" type="text/javascript">
<script src="http://MYSITE/ojs3/lib/pkp/lib/components/jquery-ui/jquery-ui.min.js" type="text/javascript">
<script src="http://MYSITE/ojs3/lib/pkp/js/lib/jquery/plugins/jquery.tag-it.js" type="text/javascript">
<script src="http://MYSITE/ojs3/plugins/themes/default/js/main.js" type="text/javascript">

Am I missing something?
What can I do?

Greetings
Hermann

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>