Community
 
 
 

CloudPlatform 3.x

343フォロワー
 
Avatar
Pankaj Paliwal

How do you change the default URL for Cloud Platform

Avatar

How do you change the default URL for Cloud Platform

I am setting up a private cloud and I want to change the default URL from http://<server>:8080/client to simply htp://<server>. This would make things a lot easier for users to remember.

The documentation on customisation simply says to refer to the tomcat website which is not much use if you don't know where to start looking.

Does anyone have any information on making this change?

Cheers

James


James Osbourn CITRIX EMPLOYEES
1件のコメント
0

サインインしてコメントを残してください。

 
 

Previous 1件のコメント

Avatar
Pankaj Paliwal
Avatar

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}


Kirk Kosinski CITRIX EMPLOYEES
コメントアクション パーマリンク

Top Contributors