Hello, is there an option to redirect all vsites: http://vsite:8000 redirects to https://servername:8000 https://vsite:8000 redirects to https://servername:8000 now they getting Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://xxxx.com:8000/
Yes, you could do that; you'd need to add a redirect rule based on the servername (if it doesn't match 'servername', redirect) in the ispconfig virtualhost definition (000-ispconfig.vhost). Note that any direct changes will be overwritten the next time you update ispconfig, so you need to copy the default template from /usr/local/ispconfig/server/conf/ to /usr/local/ispconfig/server/conf-custom/ and make changes there, too.
well this is in: /etc/httpd/conf/sites-enabled/000-ispconfig.vhost from day one. It does work but then a certifcate worning is given. The vhost domein is not redirected to the server domain holding the ispconfig certificate Listen 8000 NameVirtualHost *:8000 <VirtualHost _default_:8000> ServerAdmin webmaster@localhost <Directory /var/www/ispconfig/> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> ................
To fix that, so that every single site has a valid ssl certificate with correct name, you will need to add a ServerName directive to the current _default_:8000 vhost (so create a conf-custom file for that as mentioned above), and also modify the normal website vhost template to have a port 8000 vhost as well as 80 and 443, using a ServerName for the 'vsite' and pointing to the correct certificate (so copy the website vhost file to a conf-custom file) and doing the redirect there. You'll of course need to arrange adding all the ssl certificates (use letsencrypt or add to SSL tab).