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>

Betvisa clone scripts are pre-built software solut[…]

A Bet365 Clone Script is essentially a ready-made […]

BC. Game Clone Script is a ready-made software sol[…]

A cryptocurrency exchange script is essentially pr[…]