Closed Chico0008 closed 1 year ago
Hi,
Maybe something like:
AliasMatch "^/(plugins/glpiinventory/(index\.php)?)$" "var/www/glpi/$1"
Tried putting the AliasMatch you suggest before the first Directory setting
my agent got this error now
[Wed Apr 5 16:41:39 2023][error] [http client] communication error: 403 Forbidden
What was your previous GLPI version?
First i got 10.0.6, but changed to 10.0.7-dev because a bug in 10.0.6 prevented my agent to bring their inventory (but they could connect) i had the same warning but didn't changes apache conf before bringing official 10.0.7
previous apache conf (but with the warning)
<VirtualHost *:80>
ServerName glpi.mydom.lan
DocumentRoot /var/www/glpi
ErrorLog ${APACHE_LOG_DIR}/glpi/error.log
CustomLog ${APACHE_LOG_DIR}/glpi/access.log combined
<Directory /var/www/glpi/plugins/glpiinventory>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/glpi>
Options FollowSymlinks
AllowOverride All
AuthType GSSAPI
AuthName "glpi.mydom.lan"
GssapiCredStore keytab:/etc/user_sso.krb.keytab
GssapiUseSessions On
GssapiLocalName On
Require valid-user
</Directory>
</VirtualHost>
It's ok, the first / was missing in the path of the Aliasmatch
AliasMatch "^/(plugins/glpiinventory/(index\.php)?)$" "/var/www/glpi/$1"
thanks for your help
I have a similar configuration, my site is in HTTPS, the agents no longer communicate with the server since the GLPI 10.0.7 update from GLPI 10.0.6. the agent log shows this error:
[error] [http client] authentication required, no credentials available
and the log apache:
"POST /plugins/glpiinventory HTTP/1.1" 401 4039 "-" "GLPI-Agent_v1.4"
I have the same error with: AliasMatch "^/(plugins/glpiinventory/(index\.php)?)$" "/var/www/glpi/$1"
Fore more details, I created a post here: https://forum.glpi-project.org/viewtopic.php?pid=501085#p501085
Thanks for your help
Code of Conduct
Is there an existing issue for this?
Version
10.0.7
Bug description
Since updating to 10.0.7, i had a warning saying Web server root directory configuration is not safe as it permits access to non-public files. See installation documentation for more details.
after several search, i found that now in apache conf you must expose glpi/public instead of /glpi fine
but : in my original config file i had a directory for glpi/ with sso, and a 2nd directory poiting to glpi/plugins/glpiinventory, without SSO so my agent could connect and bring back their inventory
with the new conf i had a document root to glpu/public directory to glpu/public with sso, works fine, no warning kept my directory to glpi/plugins/glpiinventory, but my agent can't connect anymore
what is the correct apache configuration to have my agent connect, bring back their inventory now ? whithout having to re-deploy/re-conf all the agent
here's my current apache conf
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Informations sur le système, l'installation et la configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response