I run a Ubuntu 24.04.1 LTS on an IP without domain behind a proxy. To make a new app ("editor") reachable on the port 8181 (wished by client), I did these steps, but the connection failed:
- app saved in /var/www/editor (index.html)
- set the permissions with CHOWN -R and CHMOD -R
- set the new virtual host via /etc/apache2/sites-available/editor.conf
NameVirtualHost *:8181<VirtualHost *:8181> ServerAlias [M.Y.I.P] (without port) ServerAdmin webmaster@localhost DocumentRoot /var/www/editor ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined<IfModule mod_proxy.c> ProxyRequests Off ProxyPass / http://[PROXY-IP]:3128/ ProxyPassReverse / http://[PROXY-IP]:3128/</IfModule></VirtualHost>- enabled virtual host with A2ENSITE editor.conf
- checked config via APACHE2CTL CONFIGTEST
- opened and checked the port on UFW firewall
- restarted rthe server via SYSTEMCTL RESTART APACHE2
- opened the URL http://M.Y.I.P:8181
result: Error: Connection failedFirefox cannot connect to the server at M.Y.I.P:8181.
Could anybody help me to make the site running on the port? I don't have any idea more to checking.
Thank you,regards Matthias