Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#826435
I'm trying to find a way to lock down our dev site with Apache .htaccess / .htpasswd option.
When adding these to the /workflow/public_html/ it does not seem to work, so was wondering it there is another way to approach this.

thanks
#826451
I've never tried it, but I imagine that you can edit your pmos.conf file and add the directives there.
Something like:
Code: Select all
<VirtualHost localhost:30172>
    ServerName "localhost"

    DocumentRoot /opt/pm3.0.1.7-2/workflow/public_html
    DirectoryIndex index.html index.php

    <Directory /opt/pm3.0.1.7-2/workflow/public_html>
        Options Indexes FollowSymLinks MultiViews
        AddDefaultCharset UTF-8
        AllowOverride None
        Require all granted
        ExpiresActive On

        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
        </IfModule>
        AddOutputFilterByType DEFLATE text/html

        #add this part:
        AuthName "Password Protected Area"
        AuthType Basic
        AuthUserFile /your/directory/.htpasswd
        require valid-user
    </Directory>
</VirtualHost>
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]