OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Name-based virtual hosting

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.

Name-based virtual hosting

Postby drjhf » Thu Mar 02, 2006 5:13 pm

We need some help with implementing name-based virtual hosting in a way that will take a URL hosted on our server and bring traffic to a specific journal in a cluster of journals on that server.

When we tried this configuration

<VirtualHost 80.160.240.59>
ServerName http://www.newjournal1.com
ServerAdmin noname@isp.net
DirectoryIndex index.html index.php
DocumentRoot /home/httpd/mainservername/www/ojs/index.php/NJ1/
CustomLog /var/log/apache/se_access_log combined
ErrorLog /var/log/apache/se_error_log
</VirtualHost>

either of two things happened. The correct journal page appeared, but without the uploaded graphic banner at the top (which was fairly tall as well as wide). Alternately, the banner failed to load (an outline box appeared briefly) and then the nav bar items appeared over on the left margin on an otherwise blank page.

If we do this
<VirtualHost 80.160.240.59>
ServerName http://www.newjournal1.com
ServerAdmin noname@isp.net
DirectoryIndex index.html index.php
DocumentRoot /home/httpd/mainservername/www/ojs/
CustomLog /var/log/apache/se_access_log combined
ErrorLog /var/log/apache/se_error_log
</VirtualHost>
everything works, but you end up just at the main ojs page where several journals are listed.

I did notice this old reference viewtopic.php?t=131&highlight=virtual+host
but I am not certain whether this would apply or be helpful.

Any help will be appreciated.
drjhf
 
Posts: 27
Joined: Sat Feb 18, 2006 8:31 am

Postby asmecher » Thu Mar 02, 2006 5:53 pm

Hi drjhf,

You'll need to apply a mix of virtual hosting and URL rewriting to get this working.

First, set up standard virtual hosting with a DocumentRoot of /home/httpd/mainservername/www/ojs; once this is finished, you should be able to go to http://www.newjournal1.com/index.php/NJ1 and browse as usual.

To remove the index.php/NJ1, follow the thread at http://pkp.sfu.ca/support/forum/viewtopic.php?t=741; I don't believe kkamrani was able to come up with a complete set of rewrite rules, but the general idea is there.

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


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 12 guests