Ruijie Community

Title: Setting timezone and URL to IP redirection [Print this page]

Author: lucky@mitra.com    Time: 2017-12-8 00:38
Title: Setting timezone and URL to IP redirection
Hi, there,

I've just installed the MACC base on our server and everything seems to work as expected. I have two questions regarding of my new installation.

Question 1:
After the installation process finished (./install.sh), I found that our server timezone was changed to Asia/Shanghai (CST Beijing Time). The MACC web also shows the same timezone. I have changed my server timezone to Asia/Jakarta, but the MACC web was still Asia/Shanghai.
My question is: how to change MACC web timezone?

Question 2:
I can access the website through my server's public IP (for example http://123.456.678.888), doing login, setting and etc. I also have set my DNS A record to point to this IP, for example http://somedomain.com to point to IP 123.456.678.888. However, when I tried to access MACC website through http://somedomain.com, somehow I was redirected back to access IP (http://123.456.678.888). In other word, our MACC web is only accessible through http://123.456.678.888, but not from http://somedomain.com. This makes me unable to apply SSL certificate request, as http://123.456.678.888 is considered as invalid domain name.
Anyone can help me?

Thank you in advance for all helps and suggestions.

-Lucky I. Ismail

Author: Levy    Time: 2017-12-8 11:27
About the secondary probelm :
If the SSO is enabled, and domain for access is needed. It requires to change the SSO URL to domain name on “vi /macc/install/tomcat/macc_conf/macc3/macc3_sso.properties”  or Copy to PC via SFTP.


Author: lucky@mitra.com    Time: 2017-12-8 16:18
Levy replied at 2017-12-8 10:27
About the secondary probelm :
If the SSO is enabled, and domain for access is needed. It requires to ...

Hi Levy,

Thank you for your suggestion. It works. Now, accessing http://somedomain.com won't be redirected to http://some_IP_address.

However, it goes back to IP address if I access through port 8090, to access upgrade, HTTPS setting and backup. So, accessing http://somedomain.com:8090 is still redirected to http://some_IP_address:8090. Any clue?

Thank you, I really appreciate your help.

-Lucky I. Ismail
Author: Levy    Time: 2017-12-10 16:00
About the first problem, I have tested locally, if you follow the guide, this circumstance won't appear, and I will show you  the way to change the timezone.

5HDRD`5G32SKGY@`A1XKO9P.png (449.14 KB, Downloads: 414)

5HDRD`5G32SKGY@`A1XKO9P.png

Author: lucky@mitra.com    Time: 2017-12-12 15:59
Levy replied at 2017-12-10 15:00
About the first problem, I have tested locally, if you follow the guide, this circumstance won't app ...

Thank you, Levy.
This has solve my first problem.
Author: lucky@mitra.com    Time: 2017-12-12 16:05
Levy replied at 2017-12-8 10:27
About the secondary probelm :
If the SSO is enabled, and domain for access is needed. It requires to ...

Beside editing /macc/install/tomcat/macc_conf/macc3/macc3_sso.properties as suggested, do I have to edit and change all IP to domain name at settings on these files too?

/macc/install/tomcat/macc_conf/properties/cas.properties
(variables: server.name and macc.server.name).

/macc/install/tomcat/macc_conf/properties/deploy_sso.properties
(variables: sso.server.name, deploy.server.name, and macc.server.address).

/macc/install/tomcat/macc_conf/sso.properties
(variables: sso.server.name, macc.server.name, deviceLicense.server.name, and ppsk.server.name)

Thank you in advance your your help.




Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2