Hello Heitor, Thanks for the confirmation that you edited wrong file.
Yes, these errors can happen because this Apache section should not be changed. To always know which section change, you can follow on a comment inside this Apache config file. The comment is written above the valid section to change only. Best regards, Marcin Haba (gani) On Tue, 3 Mar 2020 at 01:18, Heitor Faria <hei...@bacula.com.br> wrote: > Nevermind, it worked. > I was changing the wrong stanza. > This is the correct: > > # <Directory /usr/share/baculum/htdocs> > <Location /api/page> > AuthType Basic > AuthName "Baculum Auth" > AuthUserFile > /usr/share/baculum/htdocs/protected/API/Config/baculum.users > Require valid-user > </Location> > # </Directory> > > Regards, > ------------------------------ > > *From: *"Heitor Faria" <hei...@bacula.com.br> > *To: *"ganiuszka" <ganius...@gmail.com> > *Cc: *"bacula-users" <bacula-users@lists.sourceforge.net> > *Sent: *Monday, March 2, 2020 7:04:37 PM > *Subject: *Re: [Bacula-users] [Baculum Multi-user] Apache Test Page after > changing Location tag to /api/page > > Hello Marcin, > > Indeed, I was editing the wrong (baculum Apache conf) file. > But as in the attachments, I got a lot of errors when changing the API > config. file to the following: > > <VirtualHost *:9096> > DocumentRoot /usr/share/baculum/htdocs > ServerName localhost > CustomLog /var/log/httpd/baculum-api-access.log combined > ErrorLog /var/log/httpd/baculum-api-error.log > # > # NOTE: To enable encrypted connection please prepare cert files > and > # then uncomment SSL lines below > # > #SSLEngine on > #SSLCertificateFile /etc/baculum/Config-api-apache/baculum.crt > #SSLCertificateKeyFile /etc/baculum/Config-api-apache/baculum.pem > # <Directory /usr/share/baculum/htdocs> > <Location /api/page> > Options +FollowSymLinks > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.+)$ index.php/$1 [L] > RedirectMatch ^/$ /api/?api > # Apache 2.2 > <IfModule !mod_authz_core.c> > Order Allow,Deny > Allow from all > </IfModule> > # Apache 2.4 > <IfModule mod_authz_core.c> > Require all granted > </IfModule> > </Location> > # </Directory> > #... > > Regards, > ------------------------------ > > *From: *"ganiuszka" <ganius...@gmail.com> > *To: *"Heitor Faria" <hei...@bacula.com.br> > *Cc: *"bacula-users" <bacula-users@lists.sourceforge.net> > *Sent: *Thursday, February 27, 2020 12:04:10 AM > *Subject: *Re: [Bacula-users] [Baculum Multi-user] Apache Test Page after > changing Location tag to /api/page > > Hello Heitor, > > Could I ask you about showing here what exactly you changed in web server > configuration and in which file? > > To enable OAuth2 you need to change the Baculum API config file that uses > port 9096, not 9095, so I don't know why this change has impact on your > Baculum Web accessibility. > > I am seeing that you use 9.4.4 version. There are available 9.6.0 packages > already in repositories. 9.6.2 packages should be available very soon. > > Best regards, > Marcin Haba (gani) > > On Thu, 27 Feb 2020 at 01:08, Heitor Faria <hei...@bacula.com.br> wrote: > >> Dear Users, >> >> According to ( >> https://www.bacula.org/9.4.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION003140000000000000000), >> I just changed the Baculum authentication to Oauth2 in order to implement >> the Multi-user interface. >> After changing the Apache (2.4) configuration file Location tag to >> /api/page, the Baculum 9095 port redirects to Apache Test page, and >> everything else is forbidden. >> >> Any hints? >> >> System info: >> >> [root@bacula consolesbaculum]# cat /etc/redhat-release >> CentOS Linux release 7.7.1908 (Core) >> [root@bacula consolesbaculum]# rpm -qa |grep httpd >> httpd-2.4.6-90.el7.centos.x86_64 >> baculum-api-httpd-9.4.4-1.fc30.noarch >> httpd-tools-2.4.6-90.el7.centos.x86_64 >> baculum-web-httpd-9.4.4-1.fc30.noarch >> >> Regards, >> -- >> >> MSc Heitor Faria >> CEO Bacula LATAM >> mobile1: + 1 909 655-8971 >> mobile2: + 55 61 98268-4220 >> [image: linkedin icon] >> <https://www.linkedin.com/in/msc-heitor-faria-5ba51b3> >> [image: logo] <Http://www.bacula.com.br> >> América Latina >> bacula.lat | bacula.com.br <http://www.bacula.com.br> >> >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > > -- > "Greater love hath no man than this, that a man lay down his life for his > friends." Jesus Christ > > "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za > przyjaciół swoich." Jezus Chrystus > > > -- > > MSc Heitor Faria > CEO Bacula LATAM > mobile1: + 1 909 655-8971 > mobile2: + 55 61 98268-4220 > [image: linkedin icon] > <https://www.linkedin.com/in/msc-heitor-faria-5ba51b3> > [image: logo] <Http://www.bacula.com.br> > América Latina > bacula.lat | bacula.com.br <http://www.bacula.com.br> > > > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > -- > > MSc Heitor Faria > CEO Bacula LATAM > mobile1: + 1 909 655-8971 > mobile2: + 55 61 98268-4220 > [image: linkedin icon] > <https://www.linkedin.com/in/msc-heitor-faria-5ba51b3> > [image: logo] <Http://www.bacula.com.br> > América Latina > bacula.lat | bacula.com.br <http://www.bacula.com.br> > > -- "Greater love hath no man than this, that a man lay down his life for his friends." Jesus Christ "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users