Hosting sites in local server


How to host sites in Local Server ?


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.

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

The URI to TrackBack this entry is:

RSS feed for comments on this post.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: