I updated ASL3 for a node of mine today, which consisted of 18 updates. I noticed that after the update the UI (which looks nice!) has changed for ASL3. Though also after the update, Allscan isn't working and I'm receiving the following message:
404 Not Found
The requested URL was not found on this server.
Apache/2.4.69 (Debian) Server at 192.168.1.169 Port 443
I've tried reinstalling Allscan and that doesn't solve the issue. Also, Allmon3 is working correctly. Thanks.
localized-error-pages (enabled by maintainer script)
security (enabled by maintainer script)
asl-web-ui (enabled by maintainer script)
allscan (enabled by site administrator)
serve-cgi-bin (enabled by maintainer script)
other-vhosts-access-log (enabled by maintainer script)
charset (enabled by maintainer script)
javascript-common (enabled by maintainer script)
allmon3 (enabled by maintainer script)
nocache (enabled by maintainer script)
Hi Jason, The standard way that apache works (at least in the time I have been doing web development since 1997, but maybe apache recommends something different now) is that it will serve whatever files are in the default public /var/www/html/ directory. For example if I set up Linux on a server, and install apache, by default it will serve files in the html/ directory – without me needing to change anything.
If I then create a /var/www/html/xyz/ directory and index.html file there and go to http[s]://[ip address]/xyz/ my index.html contents will be shown. It appears that whatever was done with the new ASL Web UI breaks this.
The AllScan install/update script doesn't do anything with the apache config files, because historically that has never needed to be done, and to require now that the install/update script manually edit/add an Apache config file telling apache it's OK to serve files in the default web server folder makes no sense. Something seems broken or extremely convoluted in how the new ASL Web UI is set up if it breaks apache's ability to simply show standard files in the default apache web server directory, or requires all web apps to now manually add an apache config file.
Using configuration snippets for applications in /etc/apache2/conf-available is how this has always worked in Debian from time immemorial.
ASL3 Appliance is doing it properly and ASL3 Appliance has always managed the default site configuration by design.
Making an assumption that the URI path delivers / from /var/www/html is a default, unconfigured state but not a guarantee. If you look at the output of a2query -c you can see all the various ways that's used by packages to avoid stepping on each other. I opened a PR against Allscan but I did it blind because I don't have Allscan running anywhere. When I get a chance, I'll install Allscan one of my lab machines far enough to fix the PR so it works properly.
The new packages are not proposed, they're happening. The implementation in the new appliance packages is correct for Debian packaging guidelines and follows all convention that Debian has used forever. In fact, package software installing files into /var/www/html is actually a violation of the packaging guidelines that I've been doing for awhile now and needed to be fixed. ASL Web UI manages, among many things, the certificate configuration, rewrite rules, and websockets for the webserver. In order not to break other correctly-packaged applications, the ASL Appliance package is now creating its own configuration and disabling default so other applications can co-exist easier.
I'll look into a shim script of some sort to maybe try to support apps that lack proper configuration.
Yes I understand that Linux packages should not install directly to the public html folder, but AllScan, Supermon, and nearly all other AllStar dashboards / utilities are just simple web apps - not Debian packages. It would be a lot easier for users of all those dashboards and utilities if these things would continue to work without them all having to be changed. Please do add something to the ASL Web UI to allow files / subdirectories in the default web server public folder to continue to work as they have.
Ideally longer-term various webapps and utilities could go the package route which could simplify install and updates for users, but that adds a huge amount of complexity for a single developer of a simple web app.
The initial fixup is the longest part, after that is nothing more then building the updated packages with each release, supermon-ng already handled this today. Is a straight forward approach I am not sure why it is becoming such an issue.