To install PHP on Ubuntu 18.04, Run: sudo apt-get update PHP is a programming language for developing web applications and essential part of the Ubuntu LAMP Stack. To test virtual host without DNS, create an index.html file inside the DocumentRoot and entry to the hosts file on your local computer, pointing to your Ubuntu server IP address. Of Course we still don't have anything in our DocumentRoot and you also need to configure DNS records to point your domain name to the server IP address. Save the file, enable the new site and reload the Apache web server: sudo a2ensite Īnd now our web server is ready to serve website. sudo vim /etc/apache2/sites-available/Īdd following VirtualHost configuration: ĬustomLog $/access.log combined The /var/First create the DocumentRoot: sudo mkdir /var/extension). For this demonstration, I am going to create a new virtual host for the domain. Every website will have their own configuration and separate Document Root to host website contents.Ĭreating an Apache Virtual Host is a simple task. Virtual Hosting are a way of serving multiple websites from a single server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |