Trial setup of virtual hosts. (One web server with many sites) by Computothought

Step 5: Prepare web pages.

html.jpg
Now we have all the server files done, we need to have a page to start out with to serve. w3schools,com is  a good place to learn how to set up web pages or you can get your own webmaster.  Also see http://www.instructables.com/id/Introduction-to-installing-web-apps/.

Create index.html in each hosts DocumentRoot. My oesrvr1 web pages were already set up.


$ sudo nano /var/www/www.softserv.com/html/index.html

index.html
[code]
<html>
<body>

Hello world!

</body>
</html>
[/code]

Now that we have all the files edited, we need to reload and restart server

$ sudo /etc/init.d/apache2 reload
$ sudo /etc/init.d/apache2 restart
 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!