OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



base_url[Press] - http / https

Are you responsible for making OMP work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, asmecher

Forum rules
What to do if you have a technical problem with OMP:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OMP Discussion subforum; if you have a development question, try the OMP Development subforum.

base_url[Press] - http / https

Postby heidelberg » Tue Feb 18, 2014 1:37 am

Hello,

I have run into the following problem:

we have set the base_url parameter for our press (base_url[omp]=http://url/omp ) to get rid of the index.php
in the URL and the parameter force_login_ssl = On to realise a secure login.

httpd-vhost.conf & httpd-ssl.conf- rewrite:
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^/omp(.*)$ /index.php/omp$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /index.php/index/$1 [QSA,L]

For the call of those pages when you are not logged in everything works fine.
But once you have logged in, the page tries to load the pressHeader Image and the parts of DIV#sidebarContainer via https but that does not work
because of the base_url[omp]=http://url/omp is set as HTTP and not HTTPS. It would work if we set it to HTTPS but
we do not want to offer a https site.

Is there another parameter that could solve this issue?

Best wishes,
Stefanie
heidelberg
 
Posts: 40
Joined: Mon May 04, 2009 2:17 am

Re: base_url[Press] - http / https

Postby asmecher » Tue Feb 18, 2014 10:09 am

Hi Stefanie,

I'm not sure I'm exactly following the situation; is there a URL you could PM me where I could try the current setup?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8833
Joined: Wed Aug 10, 2005 12:56 pm

Re: base_url[Press] - http / https

Postby heidelberg » Tue Feb 18, 2014 11:48 pm

Hi Alec,

yes, you could try (removed)

Best wishes,
Stefanie
heidelberg
 
Posts: 40
Joined: Mon May 04, 2009 2:17 am

Re: base_url[Press] - http / https

Postby asmecher » Wed Feb 19, 2014 11:09 am

Hi Stefanie,

Thanks -- I see the behavior at the link you provided and debugged it locally. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8567. There should be a patch there (shortly) that you can apply from within the lib/pkp subdirectory; then change your base_url[...] directives according to the comment there to make the URLs "protocol relative". This hasn't been well tested yet but works on my setup and is a minimal change. Let me know how it goes.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8833
Joined: Wed Aug 10, 2005 12:56 pm

Re: base_url[Press] - http / https

Postby heidelberg » Thu Feb 20, 2014 1:59 am

Hi Alec,

I did patch the file but now nothing is displayed anymore ...
It just keeps loading ...
Maybe it is useful to wait for OMP 1.1 and try it again?

Best wishes,
Stefanie
heidelberg
 
Posts: 40
Joined: Mon May 04, 2009 2:17 am

Re: base_url[Press] - http / https

Postby asmecher » Thu Feb 20, 2014 9:16 am

Hi Stefanie,

OMP 1.1 will be out soon -- within a week, I suspect. Meanwhile, have you checked your error log to see if something relevant appears there?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8833
Joined: Wed Aug 10, 2005 12:56 pm

Re: base_url[Press] - http / https

Postby heidelberg » Wed Mar 19, 2014 3:23 am

Hi Alec,

are you actually using the same mod_rewrite rules that I am using (send in the first post)?
Or could it be that there is something wrong with my rules?

Best wishes,
Stefanie
heidelberg
 
Posts: 40
Joined: Mon May 04, 2009 2:17 am

Re: base_url[Press] - http / https

Postby asmecher » Wed Mar 19, 2014 8:10 am

Hi Stefanie,

I was able to duplicate the problem without any mod_rewrite rules by configuring it as you described; the problem was mixing http and https requests. The patch linked above fixes that issue. There may be other issues related to the mod_rewrite rules; I haven't tested those.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8833
Joined: Wed Aug 10, 2005 12:56 pm


Return to OMP Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest