This post refers to DotKernel 1, based on Zend Framework 1.
If you are looking for DotKernel 3 related posts, go here.

In /var/www/vhosts/exampledomain.com/conf/vhost.conf file add this code:

< Location /admin>	
   AuthType Basic
   AuthName "My Site Admin"
   AuthUserFile /var/www/vhosts/exampledomain.com/conf/.htpasswd
  Require valid-user
< /Location >

 

Notice the server that vhost.conf has been added/changed with command:

/usr/local/psa/admin/sbin/websrvmng -a

 

Then create the .htpasswd file and upload it to /var/www/vhosts/exampledomain.com/conf/



Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:

  • Modernising Legacy Applications
  • Migration from any version of Zend Framework to Laminas
  • Migration from legacy Laminas API Tools (formerly Apigility) to Dotkernel API
  • Mezzio and Laminas Consulting and Technical Audit
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>