ServerAlias DocumentRoot /var/www//public_htmlĬustomLog $/access. Then overwrite the values with the text below: Once you have copied the files, open the first virtual hosts file on a nano editor to edit its content using the command below: $ sudo nano /etc/apache2/sites-available/ $ sudo cp /etc/apache2/sites-available/nf /etc/apache2/sites-available/Īpache configuration files must end with a “.config” file extension. To do this, run the command below $ sudo cp /etc/apache2/sites-available/nf /etc/apache2/sites-available/ We need to copy that file and use it to configure our and virtual hosts. When Apache is first installed on Ubuntu 18.04 server, it creates a default virtual host file on the path / etc/apache2/sites-available/nf. Step 1:Ĭreate the virtual hosts configuration files for our two sites In case you don’t have apache installed, you can run the command below on your Ubuntu 18.04 server: $ sudo apt-get install apache2Īlso we will be using and as our dummy domain values and later we will show you how to edit the local hosts file on your computer to test the virtual hosts. Special Note: Consult with Hostadvice’s Best Linux Hosting Services page or Best VPS Hosting page to find the top Linux VPS hosting services. In this guide, we will walk you through the process of running 2 different sites on a single instance of Ubuntu 18.04 VPS. However, make sure that your server can handle the traffic and disc space. There are no limits to the number of sites that you can host on your Apache server running Ubuntu 18.04. The client visiting the website will never know if the server is responsible for other virtual hosts. and on a single Ubuntu 18.04’s IP address.Īpache’s virtual host directs visitors to different folders where the domains file are located. Download Ubuntu Server What’s new in Ubuntu Server 22. Whether you want to deploy an OpenStack cloud, a Kubernetes cluster or a 50,000-node render farm, Ubuntu Server delivers the best value scale-out performance available. It is simply the aspect of running different domains e.g. Ubuntu Server brings economic and technical scalability to your datacentre, public or private. This is very economical because it allows you to use just a single VPS server for all your domains. One of the benefits of using Ubuntu 18.04 and Apache is the ability to host multiple websites on a single server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |