I'm running a small server with Debian 9.13 stretch, which includes a CUPS print service.
The attached printer works OK, but the interface page at [server IP]:631 is semi-broken: the HTML elements and links are there, but only in their elementary form: Here's the page's source code:
Code: Select all
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="/cups.css" type="text/css">
<link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta name="viewport" content="width=device-width">
<style>html{display:none;}</style>
<script type="text/javascript"><!--
/* Only display document if we are not in a frame... */
if (self == top) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
/* Show an error if cookies are disabled */
function check_cookies() {
if (!navigator.cookieEnabled) {
document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
}
}
--></SCRIPT>
<title>Jobs - CUPS 2.2.1</title>
</head>
<body onload="check_cookies();">
<div class="header">
<ul>
<li><a href="http://www.cups.org/" target="_blank">CUPS.org</a></li>
<li><a href="/">Home</a></li>
<li><a href="/admin">Administration</a></li>
<li><a href="/classes/">Classes</a></li>
<li><a href="/help/">Help</a></li>
<li><a class="active" href="/jobs/">Jobs</a></li>
<li><a href="/printers/">Printers</a></li>
</ul>
</div>
<div class="body">
<div class="row">
<h1>Jobs</h1>
<FORM ACTION="/jobs/" METHOD="GET">
<P ALIGN="CENTER"><B>Search in
Jobs:</B>
<INPUT TYPE="SEARCH" NAME="QUERY" VALUE="" SIZE="40" PLACEHOLDER="" AUTOSAVE="org.cups.jobs" RESULTS="20"> <INPUT
TYPE="SUBMIT" VALUE="Search"> <INPUT TYPE="SUBMIT" NAME="CLEAR" VALUE="Clear"></P>
</FORM>
<FORM ACTION="/jobs" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="completed"><INPUT TYPE="SUBMIT" VALUE="Show Completed Jobs"></FORM>
<FORM ACTION="/jobs" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="all"><INPUT TYPE="SUBMIT" VALUE="Show All Jobs"></FORM>
<P ALIGN="CENTER">No jobs.</P>
</div>
</div>
<div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright © 2007-2015 Apple Inc. All rights reserved.</div>
</body>
</html>
Yet somehow this seemingly correct setup does not result in the correct CUPS web interface showing. I've been searching the Debian installation for the exact mechanism that serves up this interface page, but I can't locate it. As already said, CUPS and the attached printer are functioning fine, but I find this a bit annoying - also because I must be missing something here.
Does anyone have an idea what is going on here?
TIA,
Richard