Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Local import and https redirection

Hi guys,

i secured my OCS Inventory server it's now accessible via https://myserverip/ocsreports

i used the following code in my 000-default.conf file under sites-available folder

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

everything worked fine, until i noticed except the local import with an ocs file ( i use it as well) i'm sure of that cause as soon as i removed those lines it went back to normal.

So my question is: is there a cleaner way to redirect http traffic to https without messing up the local file import ?

Thanks for reading.

in OCS Inventory NG server for Unix by (320 points)

1 Answer

0 votes
I forgot to mention that the error i get after local import is:

[error] Cannot establish communication : 301 Moved Permanently
by (320 points)
 
Powered by Question2Answer
...