Forum Moderators: phranque

Message Too Old, No Replies

assigning a url name to the server ip

assigning url name

         

kevinjohn

7:15 am on Jun 9, 2005 (gmt 0)

10+ Year Member



Hi,
To start with,Kindly excuse me if my question is silly as i am a novice in apache server.

I have developed an application in apache server and i could run the application using "http://localhost:8080/applicationname/pagename" and my friends could access the same application by providing the ip address in the address bar like "http://10.**.**.**:8080/applicationname/pagename".

how can i assign an URL name to the ip address of the server where my application resides in the intranet like "http://myapplication".

Please advice.

Thanks in Advance.

Kevin

kevinjohn

10:50 am on Jun 9, 2005 (gmt 0)

10+ Year Member



bump.

Can any one help me out?

Romeo

1:54 pm on Jun 9, 2005 (gmt 0)

10+ Year Member



This is mainly a name resolution thing:
you may define a private domain name within a local private DNS within your local network (but have to take care that your private stuff does not leak out into the internet!).

If there are only a few users, instead of poking around with DNS definitions, you may just define the name on your server in the /etc/hosts file, and let your friends set up that name in their client hosts files, too:

10.11.22.33 myapplication.

Within your web server's httpd.conf definition, then (if it is the only application) expand the document root by your application path like /document-root/applicationname/pagename
and you should be done.

Regards,
R.

kevinjohn

4:10 am on Jun 10, 2005 (gmt 0)

10+ Year Member



Thanks a Lot Romeo.