OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



How to set up OJS with apache reverse proxy

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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

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 OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

How to set up OJS with apache reverse proxy

Postby scachett » Tue Sep 26, 2006 5:16 pm

I have two servers, one with a temporary domain (http://www.tdwg.gbif.org) and another with my permanent domain (http://www.tdwg.org). I have an instance of OJS running on a temporary URL (http://www.tdwg.gbif.org/ojs), but I would like my users to have the impression OJS is running from http://www.tdwg.org/proceedings.

I'm trying to set up a reverse proxy (using Apache mod_proxy) on the permanent server pointing to the other server. My Apache configuration for the proxy is below (set up at http://www.tdwg.org):

ProxyRequests Off
ProxyPass /proceedings/ http://www.tdwg.gbif.org/ojs/
ProxyPassReverse /proceedings/ http://www.tdwg.gbif.org/ojs/

However, I can't make OJS detect the domain properly. It renders the first page ok, but get the wrong URLs for the CSS stylesheets and some links. I think OJS is trying to auto-detect the base URL for the site and that is messing up with my set up.

Is there a way to create the set up I described above?

Any help is greatly appreciated.

Regards,

Ricardo
scachett
 
Posts: 5
Joined: Tue Jun 27, 2006 9:11 am

Postby asmecher » Wed Sep 27, 2006 12:56 am

Hi Ricardo,

You'll also need Apache's mod_proxy_html module to rewrite URLs. We're using this combination without any problems.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 9229
Joined: Wed Aug 10, 2005 12:56 pm

Using Apache's mod_proxy_html

Postby ramon » Tue Oct 24, 2006 10:54 am

Alec,

Could you provide an example of how to setup a URL rewrite rule, so that journals hosted appear to be independent, instead of hosted on a journal portal.

Also on this note, how does the configuration of registered urls work with this? does the owner register http://www.myjournal.org or http://www.myserver.org/ojs-2.1.1/index.php??
ramon
 
Posts: 940
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Domain for Single Journal

Postby fazio » Fri Nov 10, 2006 3:26 am

Hi Alec,

we are also interested in this topic. A major feature of OJS 2 is support many journal with a single installation and make a sort of journal portal.
Any journal has it own identity and could need a specific domain.
So we think that if you can post an example of configuration (ideally both apache1 and apache2) with two generic journal (path: journal1 and journal2)
and tree domain
-portaljournal.myedu.org
-- journal1.myedu.org
-- journal2.myedu.org

this could be a useful information and an improvement of multi-journal functionality.
fazio
 
Posts: 10
Joined: Wed Sep 27, 2006 6:21 am


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests