I’m trying to create virtual hosts that point to various journals on an OJS multisite installation.
The index page that lists all the journals can be accessed through the following URLS:
I would like each journal to have a discrete url so that, for example, http://soremo.library.iit.edu/ would resolve to the journal’s main page at Socially Responsible Modeling, Computation, and Design.
Is there any documentation for this? Anyone have any ideas how to accomplish this? I have a handful of journals on this site and I would like to do this for all of them.
Application Version - 188.8.131.52
This is exactly what the
base_url config.inc.php parameter is for. For single domain installations you can use it with just:
base_url = "https://yourdomain.whatever"
But if you look further down in the file you’ll see that you can specify domains for specific journal paths like:
base_url[Soremo] = "https://some.other.domain.to.ojs/index.php/Soremo"
and do that for as many individual journals you have.
For Apache, just point all of the domains to the same DocumentRoot and then OJS will sort it out. Domains that are not specified with specific
base_url directives will load off of the main one in the regular
Thanks for the reply.
I’ve tried this and I’m still running into an error. When I set these directives in the config.inc.php file I get the same results–both URLs resolve to the main index page, but I also don’t get any CSS to render.
Here is the relevant part of my config.inc.php
base_url[index] = "http://journals.library.iit.edu"
; base_url[myJournal] = http://www.myUrl.com/myJournal
; base_url[myOtherJournal] = http://myOtherJournal.myUrl.com
base_url[Soremo] = "http://soremo.library.iit.edu/index.php/Soremo"
I have virtual hosts files for both journals.conf and soremo.conf.
Here are the relevant snips from each:
I must be missing something. Thanks for any help you can provide.