Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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>

Capture.PNG I have use this javascript code to ad[…]

Having a business, especially when it involves tra[…]

The condition is not workable

Hi there, Recently I've encountered the amount wh[…]

Yes i'm using vue js to load the data.