Hosting sites in local server

Question

How to host sites in Local Server ?

Answer

The folder /var/www contains the websites that are hosted in the local server. For example, let us say that you have your website called MySite in a folder called Websites, within your home folder; and you want to host this site in the local server.

In the Terminal, first you go to the /var/www folder. Then, type the following command :

ln -s /home/YourName/Websites/MySite

Now, in your web browser (like firefox), if you type http://localhost/MySite, then its index file will be shown.

Advertisements
Published in: on April 30, 2008 at 1:50 am  Leave a Comment  

The URI to TrackBack this entry is: https://ubuntuissues.wordpress.com/2008/04/30/hosting-sites-in-local-server/trackback/

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: