Create as Domain instead URL Link

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
ketut
Posts: 10
Joined: 01 Aug 2017, 12:42

Create as Domain instead URL Link

Post 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
User avatar
jeanmichel
Posts: 109
Joined: 23 May 2014, 11:37
Location: Sydney

Re: Create as Domain instead URL Link

Post 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.
Regards,

Jean-Michel Rapin

LANSA Pty Ltd
email: JeanMichel.Rapin@lansa.com.au
Address: 122 Arthur Street, North Sydney, NSW 2060, Australia
Tel: +61 289 070 262 http://www.lansa.com | http://blog.lansa.com |
ketut
Posts: 10
Joined: 01 Aug 2017, 12:42

Re: Create as Domain instead URL Link

Post 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
jaimosky
Posts: 40
Joined: 30 May 2017, 16:48

Re: Create as Domain instead URL Link

Post 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…
User avatar
jeanmichel
Posts: 109
Joined: 23 May 2014, 11:37
Location: Sydney

Re: Create as Domain instead URL Link

Post 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.
Regards,

Jean-Michel Rapin

LANSA Pty Ltd
email: JeanMichel.Rapin@lansa.com.au
Address: 122 Arthur Street, North Sydney, NSW 2060, Australia
Tel: +61 289 070 262 http://www.lansa.com | http://blog.lansa.com |
Post Reply