Dave,
thanks for the hint.
- copy the line from the file, and paste it into your console and execute it. (This will probably give you an error)
I got this:
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Exit with code 1 due to http error: 403 Forbidden
So I changed my apache config to allow unauthenticated http access (it was authenticated and HTTPS only before) and while it gave me an error at the end
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Exit with code 2 due to http error: 404 Page not found
it actually created the PDF file with the correct content.
- edit your command line and change “http://<path>/cmdb/_lib/tmp/<filename>.html” to “/var/www/html/cmdb/_lib/tmp/<filename>.html” and execute the new command line.
Using the local filepath instead of the HTTP URL, the file is created as well and without the http errors at the end.
Since I need to enable Authentication\HTTPS again, what’s the best way to solve this issue? Enabling HTTP\Unauthenticated from localhost and HTTPS\authenticated from anywhere else in the apache config (I wish I knew how… …)?
Btw, why is SC using an http URL and not a local file path? Is there any way to tell SC to use the localpath? That would solve the issue without having to reconfigure apache, right?
Thanks again Dave.