How i can make separate domain for each site

Hello, i am beginner. i am installed virtual box 5 and set up centOS 6.7 minimal. I am install all LAMP and everthing works fine.I made database and user in phpMyAdmin for Joomla and WP. I must install two web sites(Joomla and Drupal) on separate domain in browser and separate folder using C:\Windows\System32\drivers\etc for direction ip address. When i install Joomla i can enter on site with my ip adress

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m using NginX, but the principles are the same in that “beginner” needs to set up virtual hosts for the web server. That Fedora link isn’t sufficient information. I do agree that setting up virutal box is a weird approach, assuming “beginner” is trying to take one droplet and create two virtual servers. Apache and NginX can keep the websites isolated, though they will share the same IP address.

I’m using FreeBSD, so I can’t be of much more help, (Well providing people think I helped at all. ;-)) Here is a google hit regading virutal hosts, but obviously untested by me.

Doing a quick scan of the article, I don’t a mention of DNS, but obviously you have to set up DNS for each domain, even if the actual IP is the same.

I must use centOS and virtual box.


Are you trying to set this up on a Droplet through DigitalOcean or on your local Windows PC? If you are looking to setup a LAMP stack on a Droplet, you really don’t need VirtualBox as Apache will be able to handle as many domains as you need while providing the ability to use your domains.

I would recommend looking over the following tutorial. It’s for Fedora, though you could just as easily replace Fedora with CentOS as things are ultimately similar and the commands should not differ.