Solved

virtual host in ubuntu

Posted on 2014-03-03
5
390 Views
Last Modified: 2014-03-03
Hi,

i have a website running in a ubuntu server with a address of http://10.100.103.85/index.html

What i can do for change this address to something like this http://www.mysite.com

and create others like http:www.anotherwebsite.com

Any idea?
0
Comment
Question by:joyacv2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39900142
I'm assuming this is purely for internal use? Or do you want to host the websites on the Internet?

If hosting only on your LAN you'll need an internal DNS server, then you can make records for any websitename you want (eg: myfirstwebsite.domainname.com, mysecondwebsite.domainname.com, and so on ...)

For Internet hosting you'll need a  fixed IP addres(ses) from your provider then adjust your firewall to forward requests to your host

This is a somewhat over-simplified explanation, tell us what it is you want to do exactly to get more specific information.
0
 
LVL 1

Author Comment

by:joyacv2
ID: 39900167
hi,

yes, you are correct, this is for internal network. how I can do that, what i have to modify and where? Thanks!
0
 
LVL 25

Accepted Solution

by:
Zephyr ICT earned 500 total points
ID: 39900254
You'll have to install a DNS server for that, either on your Ubuntu or another server (physical or virtual, can be a Windows server to of course) ... There are plenty of interesting howto's out there...

example: http://askubuntu.com/questions/330148/how-do-i-do-a-complete-bind9-dns-server-configuration-with-a-hostname

It starts with installing BIND9...
0
 
LVL 1

Author Comment

by:joyacv2
ID: 39900416
Hi,

Is necessary to install bind9? This is a very complex procedure
0
 
LVL 8

Expert Comment

by:Pepe2323
ID: 39901038
Hi

as spravtek said you need the DNS server that is one will make the resolution from name to ip, i assume you want to access to that http server from other client isn't it?

The other options can be to modify the hosts file from the clients in order they know that url
for unix server /etc/hosts

for Windows:  %systemroot%\system32\drivers\etc\hosts

do something like this:
102.54.94.97     rhino.acme.com

Usually the first step to look for a name is look at the host file if that name does not exist there then it will look at the dns.

Regards.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multiple SSL sites on one IP? 3 36
Redirect to catagorie in case of 404 4 32
The better OS Architecture 13 87
Krita v3 Linux Mint/Ubuntu 16.04 9 11
The purpose of this article is to demonstrate how we can use conditional statements using Python.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question