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" <[email protected]>
> To: "Heitor Faria" <[email protected]>
> Cc: "bacula-users" <[email protected]>
> 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 < [ mailto:[email protected] |
> [email protected] ] > wrote:
>> Dear Users,
>> According to ( [
>> https://www.bacula.org/9.4.x-manuals/en/console/Baculum_API_Web_GUI_Tools.html#SECTION003140000000000000000
>> |
>> 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
>> [ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ]
>> [ http://www.bacula.com.br/ ]
>> América Latina
>> [ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ |
>> bacula.com.br ]
>> _______________________________________________
>> Bacula-users mailing list
>> [ mailto:[email protected] |
>> [email protected]
>> ]
>> [ https://lists.sourceforge.net/lists/listinfo/bacula-users |
>> 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
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ]
[ http://www.bacula.com.br/ ]
América Latina
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ |
bacula.com.br ]
Message: Problem with connection to remote host. cURL error 0: . <!DOCTYPE HTML
PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title>
</head><body> <h1>Not Found</h1> <p>The requested URL /api/v1/jobs was not
found on this server.</p> </body></html>
Prado\Exceptions\TConfigurationException
Description
TPageService.BasePath '/usr/share/baculum/htdocs/protected/pages' is not a
valid directory.
Source File
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php
(397)
0386:
0387: /**
0388: * @return string the root directory for storing pages. Defaults to
the 'pages' directory under the application base path.
0389: */
0390: public function getBasePath()
0391: {
0392: if ($this->_basePath === null) {
0393: $basePath = $this->getApplication()->getBasePath() .
DIRECTORY_SEPARATOR . self::DEFAULT_BASEPATH;
0394: if (($this->_basePath = realpath($basePath)) === false ||
!is_dir($this->_basePath)) {
0395: $basePath = $this->getApplication()->getBasePath() .
DIRECTORY_SEPARATOR . self::FALLBACK_BASEPATH;
0396: if (($this->_basePath = realpath($basePath)) === false ||
!is_dir($this->_basePath)) {
0397: throw new
TConfigurationException('pageservice_basepath_invalid', $basePath);
0398: }
0399: }
0400: }
0401: return $this->_basePath;
0402: }
0403:
0404: /**
0405: * @param string $value root directory (in namespace form) storing
pages
0406: * @throws TInvalidOperationException if the service is initialized
already or basepath is invalid
0407: */
0408: public function setBasePath($value)
0409: {
Stack Trace
#0
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(242):
Prado\Web\Services\TPageService->getBasePath()
#1
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(160):
Prado\Web\Services\TPageService->loadPageConfig(NULL)
#2
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(1089):
Prado\Web\Services\TPageService->init(NULL)
#3
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(1052):
Prado\TApplication->startService('page')
#4
/usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(369):
Prado\TApplication->initApplication()
#5 /usr/share/baculum/htdocs/index.php(31): Prado\TApplication->run()
#6 {main}
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users