Quantcast
Channel: Ocsinventory Q&A - Recent questions
Viewing all articles
Browse latest Browse all 4376

Local import and https redirection

$
0
0

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.


Viewing all articles
Browse latest Browse all 4376

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>