How do you change the default URL for Cloud Platform
Hi, James. There are multiple ways to do this. To get a very clean URL like "http://cloudstack.tld", many customers use a load balancer, in front of multiple CloudStack servers, that controls the URL. Other customers install Apache, nginx, or another web server on the CloudStack server, and configure it to listen on 80/tcp with a rewrite rule to make a clean URL.
If you don't necessarily need a clean URL, you can use iptables rules to forward 80/tcp to 8080/tcp, create an index.html for the ROOT webapp to foward to +/client+, and when customers access "http://cloudstack.tld" they will get forwarded to "http://cloudstack.tld/client". For example:
{code}iptables -t nat -A PREROUTING -i eth0 \
-p tcp --dport 80 -j REDIRECT --to-port 8080{code}
And here's an example of what /usr/share/cloud/management/webapps/ROOT/index.html could contain:
{code}<html>
<head>
<meta http-equiv="REFRESH"
content="0;url=http://cloudstack.tld/client">
</head>
<body>
</body>
</html>{code}
Best regards,
{color:#555555}Kirk Kosinski{color} !http://www.linkedin.com/favicon.ico!
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}





