Install Apache
$ sudo apt-get install apache2
Open your browser, and go to http://localhost/
Now, you can see the HTML file in /var/www/html/. Then, you can replace html file with yours.
For example, I clone my own web page from my github, and display it on browser.
$ git clone https://github.com/tzutalin/tzutalin.github.io.git
$ cd tzutalin.github.io; sudo cp -rf . /var/www/html/
Finally, open your browser and type "localhost", then you can see the web page
Note:
If you would like to register your own domain name, you can find DNS providers like GoDaddy, Namecheap, 1&1 Internet, Dotster.com, etc.
No comments:
Post a Comment