Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

nginx phpmyadmin subdirectory

    location ~* ^/phpmyadmin(?<pmauri>/.*)? {
        alias /usr/share/phpmyadmin/;
        index index.php;
        try_files $pmauri $pmauri/ =404;
        location ~ .php$ {
            include fastcgi.conf;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$pmauri;
            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nginx #phpmyadmin #subdirectory
ADD COMMENT
Topic
Name
9+9 =