Page 1 of 1
Disable or redirect the default web interface
Posted: 22 Oct 2019, 23:38
by sirockin
I have my own web interface that I want to serve from my Rev Pi. How do I disable the default Web Interface, or better still, redirect it to another port?
Thanks!
Re: Disable or redirect the default web interface
Posted: 23 Oct 2019, 14:59
by dirk
Hi sirockin, you can do the following:
Stop the web server
Disable the web server
Re: Disable or redirect the default web interface
Posted: 23 Oct 2019, 17:02
by sirockin
Thanks Dirk.
And if I want to still see the interface but on a different port. Is there a config file somewhere where I can change the port?
Re: Disable or redirect the default web interface
Posted: 24 Oct 2019, 10:09
by dirk
Dear sirockin, have a look at the documentation of the Apache webserver how you may change the listening port. Maybe
this link helps you.
Re: Disable or redirect the default web interface
Posted: 04 Nov 2019, 17:54
by sirockin
Thanks. So the complete answer is to change the port from default (80) to (in the following example) 90:
1. In file ' /etc/apache2/sites-enabled/000-default.conf', change '<VirtualHost *:80>' to '<VirtualHost *:90>'
2. In file /etc/apache2/ports.conf change 'Listen 80' to 'Listen 90'
3. Stop then restart the service using 'systemctl stop apache2.service' then 'systemctl start apache2.service'
Re: Disable or redirect the default web interface
Posted: 05 Nov 2019, 16:52
by dirk
Dear sirockin, thank you for your positive response.
Re: Disable or redirect the default web interface
Posted: 22 Aug 2023, 19:56
by ivan.chonin@axbul.bg
Hello,
We have the same issue with the new OS bullseye.
Can we still use the same setting solution?
Re: Disable or redirect the default web interface
Posted: 13 Sep 2023, 09:56
by p.rosenberger
Hi Ivan,
as you'll see you will be redirected to port 41443 by default. We implemented the redirect as extra Debian package. You can remove it with the following command:
Code: Select all
sudo apt remove revpi-webstatus-redirect
It might be necessary to reboot you RevPi to see the result. Or reload the apache webserver configuration:
After this the default Apache page will be shown at port 80.
Now you can place you own page in the html root.
If you want to use your own application on port 80 you need to disable the default sites of apache:
And you need to comment out the
in the file
. If you also need port 443 you will also need to comment out the lines with
(see
https://askubuntu.com/questions/846647/ ... fault-conf for details).
And then you need to restart the apache webserver:
Best Regards
Philipp