Krooms
New Pleskian
- Server operating system version
- Ubuntu 24.04
- Plesk version and microupdate number
- 18.0.71
Hello,
I want to use Caddy or Traefik as reverse proxy, so I want to change the listen ports for Apache from 80/443 to 8080/4443.
I already tried editing the ports.conf to
and the 000-default.conf to
In Caddy I set a reverse proxy for the website domain to server-ip:4443 and tried server-ip:8080, also.
In both cases I see the default Apache2 page, when I visit the domain, but editing the index.html in Plesk has no effect.
Setting the reverse proxy to :4443 allows me to get a Let's encrypt certificate for the domain, setting it to :8080 gets me a failure while obtaining a certificate.
When I open the httpd.conf (#/var/www/vhosts/system/domain/conf/)for my website I can see that still port 443 and 80 are in use.
In the httpd.conf it is written that I should not modify this file and instead modify those two files:
#/var/www/vhosts/system/domain/conf/vhost.conf
#/var/www/vhosts/system/domain/conf/vhost_ssl.conf
But those two files do not exist.
Any help would be appreciated. I'm totally new to this and it took me days to figure this all out.
I want to use Caddy or Traefik as reverse proxy, so I want to change the listen ports for Apache from 80/443 to 8080/4443.
I already tried editing the ports.conf to
Code:
Listen 8080
<IfModule ssl_module>
Listen 4443
</IfModule>
<IfModule mod_gnutls.c>
Listen 4443
</IfModule>
Code:
<VirtualHost *:8080>
In Caddy I set a reverse proxy for the website domain to server-ip:4443 and tried server-ip:8080, also.
In both cases I see the default Apache2 page, when I visit the domain, but editing the index.html in Plesk has no effect.
Setting the reverse proxy to :4443 allows me to get a Let's encrypt certificate for the domain, setting it to :8080 gets me a failure while obtaining a certificate.
When I open the httpd.conf (#/var/www/vhosts/system/domain/conf/)for my website I can see that still port 443 and 80 are in use.
Code:
<VirtualHost IP:443 >
.
.
.
<VirtualHost IP:80 >
In the httpd.conf it is written that I should not modify this file and instead modify those two files:
#/var/www/vhosts/system/domain/conf/vhost.conf
#/var/www/vhosts/system/domain/conf/vhost_ssl.conf
But those two files do not exist.
Any help would be appreciated. I'm totally new to this and it took me days to figure this all out.