tags:

views:

31

answers:

2

hi all , i am using ubuntu and i have some html pages and i want to host a website from my PC at my home. how can i do using apache2.I am new to Apache2. If any one know about it plz help me.

+1  A: 

Once apache is installed you should find that you can place content in a directory silimar to /usr/www or /usr/share/www and apache will serve it. You may also need to start apache, I don't know the ubuntu command but on fedora 12 it is:

service httpd start
thomasfedb
+1  A: 

The easiest way to publish HTML files with apache is by putting them in /home/your-user-name-please-do-replace-me/public_html, making sure that your apache is installed and then start apache. How to make apache start after a reboot, see this forum post on Ubuntu Forums.

When you have apache up and running, find out your servers IP-address (http://whatismyipaddress.com/ is pretty handy for this) and then your files will be accessible from: http://you-ip-address-whatever/~your-user-name-please-do-replace-me

You could always use services like http://www.dyndns.com/ so that you don't have to use your IP-address all the time.

monotux

related questions