Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

WEB HOSTING IN LION SERVER

Hi,

I want to know how i can configure my lion server to host multiple websites in my local network. I am trying to use a domain like: www.mytesthomepage.com to go my test page. It's work with the ip address, example 10.0.1.5, but when i enter the link, nothing happens. I read about DNS zone and Virtual Hosts, and sincerely i don't understand nothing!!!! Any ideas?
0
joyacv2
Asked:
joyacv2
  • 10
  • 7
2 Solutions
 
tsi15104Commented:
is your lion server also the DNS server for your domain. if not you will have to find the dns server for your network. you will need to add an entry pointing the desired domain name to the IP address of your server. this will only work internally on your network. if you want external clients to connect to your web site, you may need to speak to your ISP or the company that you lease the domain from to redirect to your external IP address and have your router configure the pass through to the OS server.
0
 
joyacv2Author Commented:
Hi,

i think that my dns server is 127.0.01, but i don't what is next?
0
 
joyacv2Author Commented:
the server ip address is 10.0.1.6
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
tsi15104Commented:
if your getting this from the loin server, the 127.0.0.1 is the local host. if this in a home LAN or in school / Biz environment?
0
 
joyacv2Author Commented:
HOME LAN
0
 
joyacv2Author Commented:
i see this in the network settings in system preferences
0
 
tsi15104Commented:
ok, so usually your router would be the DNS server, depending on the router, it may be limited in what you can do, I would install the DNS services on your OSX server and point the DHCP addresses from the router to the IP of the server. if this cannot be done, install the DHCP service on the server and turn off DHCP on your router.
0
 
joyacv2Author Commented:
the dns can be modified in the router?
0
 
joyacv2Author Commented:
i see a setting with the dns in the network preferences called "search domains". Can i use this to try to solve the problem,?
0
 
tsi15104Commented:
not really, that is there to search a domain from a DNS server. you can point the browser to the name of the server instead of the ip address. but I think a little more reading up on DNS may be what the doctor ordered. if you want to learn by doing, disable DNS and DHCP on your router and configure them up on your mac server, it will then supply addresses and DNS results to the other computers on your LAN/WLAN. you can then create zones and records for your web page to be displayed by.

Just to clarify, this is a mac server and not just a mac?
0
 
joyacv2Author Commented:
yes, this is a mac server, but sincerely this is extremely advance for me! I understand that if i do this, my internet network will depends on the server, correct?
0
 
tsi15104Commented:
this is correct, if you disable DNS and DHCP on the router and enable on the Mac, the network will only function once the server is configured properly and only when this server is on and connected
0
 
joyacv2Author Commented:
there is another solution. that don't require this?
0
 
tsi15104Commented:
you could setup your routers DNS to handle the requests but router capabilities vary between makes, models and age. you would need to investigate the capabilities of your router to make a better judgement
0
 
joyacv2Author Commented:
ok, i found how to do with ip, now i have my server and my machines working when i want to see the webpage, i enter the ip and the webpage open. Only in my server i can enter the webpage modifying the hosts file. What can i do in my others mac's?

0
 
tsi15104Commented:
you can modify the hosts file on all your macs or you can make the relevant changes on the DNS server that the other mac are pointing to as defined either by DHCP or their manual address
0
 
joyacv2Author Commented:
how i can do this? i am working with two macs, one the server and one laptop. the DNS of the laptop is empty, in the server is 127.0.0.1 and the ip of the server is 10.0.1.6. What i can do?
0
 
ishcabittleCommented:
Your server is already looking to itself to perform DNS lookups, so you are set there - you shouldn't need to configure your router unless you want other clients on your network to also use your server.  As it seems like you are simply using this server as a test bed, that shouldn't be necessary.

To configure DNS on your server, you will need to download the Server Admin tools from Apple:

http://support.apple.com/kb/DL1419

This will get you the Server Admin application, where you can then create a new zone called mytesthomepage.com.  Once this zone is created, you can create the machine www.mytesthomepage.com and give it your server's IP address.  When you browse to www.mytesthomepage.com on the server, it will query itself for that address and give itself its own IP address, then load the page you've specified.

Using Server Admin to create zones and machines can be difficult, but check out this guide for pointers (start at section 4.1).  The guide was created for Leopard, but the Server Admin application in Lion has the same look and fields.

http://www.wazmac.com/quickstarts/pdf/osx_server/leopard/01_install_dns.pdf

Hosting multiple domains has become difficult in Lion, with the need to modify the apache2 installation by hand.  It is much simpler to use a third party application to do this for you:

http://cutedgesystems.com/software/WebMonForLion/

This application gives you all the tools you'll need to effectively configure multiple sites on your Lion Server.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now