Comments (6)
Hi @sottolski ,
Anything in the apache logs of your server while trying to connect ? What is the authentication method ?
Regards,
LÊa
from ocsinventory-ocsreports.
Hi @sottolski ,
Any news ?
Best regards,
Charlene
from ocsinventory-ocsreports.
Sorry, didn't see the questions. Authentication method is "Local only", with default credentials for user "admin".
Regardings apache logs, strangely only one line is printed after login, with an HTTP 200.
10.20.x.y - - [26/Sep/2023:10:42:17 +0200] "POST / HTTP/1.1" 200 9205 "https://ocs.int.zzz.de/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
Also, nothing obvious in the browsers developer toolbar, all requests are shown with HTTP 200, and the JS console is empty.
The problem is only with HTTPS; after logging in via HTTP, I can switch to HTTPS w/o any problem.
from ocsinventory-ocsreports.
Hi @sottolski ,
Do you have a particular configuration for your HTTPS
?
Regards,
Charlene
from ocsinventory-ocsreports.
I believe it's pretty standard. Plus, the configuration did work until I upgraded ocs. Anything particular I should look at?
Listen 10.20.127.23:443
NameVirtualHost 10.20.127.23:443
<VirtualHost 10.20.127.23:443>
ServerName ocs.int.xxx.de
ServerAlias ocs.int.xxx.de
DocumentRoot /usr/share/ocsinventory-reports/ocsreports/
<Directory /usr/share/ocsinventory-reports/ocsreports/>
AllowOverride all
order allow,deny
allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/sslcerts/letsencrypt/tools_int_multi.crt
SSLCertificateKeyFile /etc/sslcerts/letsencrypt/tools_int_multi.key
SSLCertificateChainFile /etc/sslcerts/letsencrypt/fullchain.crt
CustomLog /var/log/apache2/access_ocs.int.xxx.de_443.log combined
ErrorLog /var/log/apache2/error_ocs.int.xxx.de_443.log
</VirtualHost>
Alias /ocsreports /usr/share/ocsinventory-reports/ocsreports
<Directory /usr/share/ocsinventory-reports/ocsreports>
# By default, users can use console from everywhere
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options AuthConfig
# Uncomment following to force use of HTTPS in Administration Server
#SSLRequireSSL
# PHP tuning (not working on all distribution, use php.ini instead)
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag file_uploads on
# Some PHP tuning for deployment feature up to 8 MB
# post_max_size must be greater than upload_max_filesize
# because of HTTP headers
php_value post_max_size 101m
php_value upload_max_filesize 100m
# You may have to uncomment following on errors
#php_value max_execution_time -1
#php_value max_input_time -1
# Uncomment following if you need to specify a mysql socket
#php_value mysql.default_socket "path/to/mysql/unix/socket"
#!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)
php_flag magic_quotes_gpc off
</IfModule>
# Duplicate for php7 compatibility
<IfModule mod_php7.c>
AddType application/x-httpd-php .php
php_flag file_uploads on
# Some PHP tuning for deployment feature up to 8 MB
# post_max_size must be greater than upload_max_filesize
# because of HTTP headers
php_value post_max_size 101m
php_value upload_max_filesize 100m
# You may have to uncomment following on errors
#php_value max_execution_time -1
#php_value max_input_time -1
# Uncomment following if you need to specify a mysql socket
#php_value mysql.default_socket "path/to/mysql/unix/socket"
#!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)
php_flag magic_quotes_gpc off
</IfModule>
# Uncomment following to allow HTTP body request up to 4 MB
# instead default 512 KB
#LimitRequestBody 4194304
</Directory>
################################################################################
# Deployment packages download area
#
# Alias to put Deployment package files outside Apache document root directory
#
<Directory /var/lib/ocsinventory-reports/download>
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
</Directory>
Alias /download /var/lib/ocsinventory-reports/download
################################################################################
# Snmp communities area
#
# Alias to put Snmp custom Mibs files outside Apache document root directory
#
<Directory /var/lib/ocsinventory-reports/snmp>
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
</Directory>
Alias /snmp /var/lib/ocsinventory-reports/snmp
from ocsinventory-ocsreports.
Hello,
After performing many different test with different configuration and use-cases we cannot reproduce the issue.
We also tried behind a reverse proxy and with a browser with a proxy configured.
It seems there is something wrong with your configuration but its not related to OCS Inventory.
I'll recommend you to double check your installation and if possible to create a sandbox environment to solve the issue.
I'm closing this issue.
Regards,
Gilles DUBOIS.
from ocsinventory-ocsreports.
Related Issues (20)
- [BUG] ocsreport not respond .httpd blocked HOT 7
- [BUG] Error after migration from Oracle Linux 7 to 9 and php 7.3 to 8.2. PHP Fatal error: Uncaught Error: Undefined constant "SSL_MODE" HOT 1
- [BUG] REST API not working as it should HOT 3
- [BUG] Wrong display of criteria on input devices search
- [FEATURE] List duplicates of disks installed in active/archived computers
- [BUG/FEATURE] update OCS HOT 1
- [BUG] Server HTTP status returns Forbidden on /ocsinventory HOT 2
- [BUG] inconsistent CVE matching depending on regexes count HOT 2
- Missing comma (,) causes sql to fail HOT 1
- [BUG] Database requirements mismatch at Wiki HOT 1
- [BUG] Docker Wiki Informations mismatch and outdated
- [BUG] connexion lente voire meme impossible (timeout) pour utilisateur ayant de nombreux TAGS
- [BUG] lenteur et mauvais calcul du nombre de logiciels sur la page index (Mon tableau de bord) si utilisateur avec multitag
- [BUG] Error 500 on import HOT 6
- [BUG]Show *** entries not dispaly in chinese language
- [BUG] less / more does not work with software versions HOT 2
- [BUG] CVE Search - wrong URL CALL HOT 1
- [BUG] HTTPS loop after enabling SSL HOT 3
- [FEATURE] Move from AD Auth to EntraID Auth
- Condition cannot be deleted from Search with various criteria
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocsinventory-ocsreports.