Page 1 of 1

Create as Domain instead URL Link

Posted: 04 Dec 2017, 16:50
by ketut
Hi all,


Have anyone who has experience hiding URL and replacing them with domain name?

Example: http://<ip address>/ts/framework/published/<new project>/index.html
to
http://newProject.com

Thanks

regards,
Ketut

Re: Create as Domain instead URL Link

Posted: 05 Dec 2017, 12:14
by jeanmichel
Hi Ketut,

If I understand correctly what you want to do is rewrite the URL from (example)
http://myproject.com/ts/framework/published/<new project>/index.html
to
http://myproject.com/myproject
for example.

If this is the case, then we don't have this feature available now on aXes. However you can request an enhancement by contacting LANSA support.

Re: Create as Domain instead URL Link

Posted: 05 Dec 2017, 19:18
by ketut
Hi Jean

Thanks for your support.

Yes, I need to access my project without ip address, directly to http://myproject.com/index.html.
Whether the aXes configuration can not be done like that?

regards
Ketut

Re: Create as Domain instead URL Link

Posted: 05 Dec 2017, 19:54
by jaimosky
Well, if your installation path in IBM i is /axes, then you just create folder /axes/myproject and there you include a index.html with the following code:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
	window.location = "http://myproject.com/ts/framework/published/myproject/index.html"
</script>
<title>MyProject Loading...</title>
</head>
<body>
</body>
</html>
(do not forget to change the permissions *PUBLIC *R of index.html in /axes/myproject)

When you call

http://myproject.com/myproject

should do the trick…

Re: Create as Domain instead URL Link

Posted: 06 Dec 2017, 09:39
by jeanmichel
Hi Ketut,
Yes, I need to access my project without ip address, directly to http://myproject.com/index.html.
1) In this case below
http://<ip address>/ts/framework/published/<new_project>/index.html
to
http://myproject.com/ts/framework/published/<new_project>/index.html

The only part of the URL is the IP address to domain name, you need to add an entry into your DNS to map to the dns name to the IP address. Nothing to do with aXes in this case. Contact your network admin for this.

2) in this case below
http://myproject.com/ts/framework/published/<new_project>/index.html
to
http://myproject.com/index.html

You cannot do that with axes because there is already a file named index.html at /<axes_install>/index.html. If you replace this file you axes instace will not work anymore.

3) In the case below
http://myproject.com/ts/framework/published/<new_project>/index.html
to
http://myproject.com/myproject
Then refer to the previous reply by Jaimoski

Hope this helps.