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
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 5
Joined: Tue Jun 27, 2006 9:11 am

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 ( and another with my permanent domain ( I have an instance of OJS running on a temporary URL (, but I would like my users to have the impression OJS is running from

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

ProxyRequests Off
ProxyPass /proceedings/
ProxyPassReverse /proceedings/

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.



Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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.

Alec Smecher
Open Journal Systems Team

Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Using Apache's mod_proxy_html

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


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 or

Posts: 10
Joined: Wed Sep 27, 2006 6:21 am

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

this could be a useful information and an improvement of multi-journal functionality.

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests