Solved

virtual host in ubuntu

Posted on 2014-03-03
5
379 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
  • 2
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Zephyr ICT
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,

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

Expert Comment

by:Pepe2323
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now