OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Password for a Static Page

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.

Password for a Static Page

Postby grandpol » Wed Jan 08, 2014 3:20 am

Dear PKP Team,

I am planning to create a static page for our "Section Editors" which will contain information about the internal process.

So, Now I am planning to create a static page which can be opened with the password (or user name with password).

Is it possible to create a static page with password ? If so, where and what should do ?

Thank you,
Grandy
grandpol
 
Posts: 29
Joined: Wed Sep 25, 2013 10:41 pm

Re: Password for a Static Page

Postby JasonNugent » Wed Jan 08, 2014 7:57 am

Hi Grandy,

Did you mean a page with a form on it for logging in, or a page specifically protected by an .htaccess file? All 'pages' served by OJS are actually just dynamic content generated via page handlers and operations, even static pages via the static page plugin. You might be able to use .htaccess and a directive that requires an authentication for a specific URL pattern. I can help further if you describe how you'd like to see it function.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: Password for a Static Page

Postby grandpol » Wed Jan 08, 2014 10:48 pm

Hi Jason,

Thank you for the reply.


I will explain, I have a static page called "Section Editor" which contains some instructions for section editors and others dont want to see this content.

So I need to give password for this static page not forms.

Thank you,
Grandy
grandpol
 
Posts: 29
Joined: Wed Sep 25, 2013 10:41 pm

Re: Password for a Static Page

Postby JasonNugent » Thu Jan 09, 2014 7:23 am

Hi Grandy,

In such a case, I'd use the <Location> directive for Apache to force password authentication for that specific URL. You'd add something like this to your Apache's httpd.conf file:

Code: Select all
<Location /url/path/to/your/static/page>
    AuthType basic
    AuthName "private area"
    AuthFile /path/to/your/.htpasswd
    require valid-user
</Location>


And build your .htpasswd file as per the standard way of doing so, with the supplied tools from Apache (the htpasswd command).

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests

cron