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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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.

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: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests