What the best way to implement server-wide redirects without having to manually edit config files? I would like to redirect: https://anydomain.com:8080 > https://myserver.com:8080 http://panel.anydomain.com > https://myserver.com:8080 The redirect should affect any existing and any future domains. I'm running Perfect Server on CentOS 6.5 with Apache.
Hi I am considering that you have installed a Perfect server guide with ISPConfig. Goto ISPConfig webinterface with admin user -->Sites-->Alieas Domain for website.
Yes. I'm not adding a domain. Can you expand on that? By server-wide, I mean that the redirect should affect every domain in the system.
This part is a normal http to https redirect for the ispconfig vhost. so you have to add a rewrite rule in the ispconfig vhost or yu can try to add a .htaccess file with the redirect in /usr/local/ispconfig/interface/web/ http://www.faqforge.com/linux/contr...http-connection-to-https-in-apache-webserver/ For this you can e.g. modify the vhost master template in /usr/local/ispconfig/server/conf/ (copy the modified version to conf-custom) where you add a server alias for panel.mydomain.com plus some rewrite code for the redirect.