Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Apache2 Serv, els directoris protegits no els configura correctament #2

Open
gtrias opened this issue Jan 9, 2014 · 1 comment
Open
Assignees
Labels

Comments

@gtrias
Copy link
Member

gtrias commented Jan 9, 2014

S'hauria de trobar alguna formula perque les dades de conexió generades pel perl fossin correctes per configurar els directoris protegits.

@ghost ghost assigned marticardus Jan 9, 2014
@gtrias
Copy link
Member Author

gtrias commented Jan 9, 2014

Potser alguna cosa aixi hauria de funcionar....

                       while( (my $n) = $prot->fetchrow_array() ) {
                                $locations = $locations . "<Directory \"%host_dir%/%name%/httpdocs/" . $n . "\">\n";
                                $locations = $locations . "\t\tAuthType Basic\n";
                                $locations = $locations . "\t\tAuthName 'Directorio protegido'\n";
                                $locations = $locations . "\t\tAuthMySQL On\n";
                                $locations = $locations . "\t\tAuthMySQL_Host ".$config{dbcfg}{'server'}."\n";
                                $locations = $locations . "\t\tAuthMySQL_DB ".$config{dbcfg}{'database'}."\n";
                                $locations = $locations . "\t\tAuthMySQL_User ".$config{dbcfg}{'user'}."\n";
                                $locations = $locations . "\t\tAuthMySQL_Password ".$config{dbcfg}{'pass'}."\n";
                                $locations = $locations . "\t\tAuthMySQL_Password_Table httpd_user\n";
                                $locations = $locations . "\t\tAuthMySQL_Password_Field password\n";
                                $locations = $locations . "\t\tAuthMySQL_Encrypted_Passwords off\n";
                                $locations = $locations . "\t\tAuthMySQL_Username_Field name\n";
                                $locations = $locations . "\t\tAuthMySQL_Where ' AND protected_dir=\"$n\" AND httpd_host_id=$id'\n";
                                $locations = $locations . "\t\tAuthBasicAuthoritative Off\n";
                                $locations = $locations . "\t\tAuthUserFile /dev/null\n";
                                $locations = $locations . "\t\tRequire valid-user\n";
                                $locations = $locations . "\t</Directory>\n";
                        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants