Create Alias in Apache2 Ubuntu 10.04

Have You working with a library like jquery, extjs, dojo? Are Your tired to include those library multiple times in multiple project? I’m a lazy person, so that is not my choice. And the answer is use apache alias featured.


  1. Open your apache2 config, mine is /etc/apache2/apache2.conf
  2. Make sure this line is not commented
    # Include all the user configurations:
    Include /etc/apache2/httpd.conf
  3. Open /etc/apache2/httpd.conf
  4. Mine is empty, so add this line
    Alias /extjs/ "/var/www/jslib/extjs/"
    <Directory "/var/www/jslib/extjs/">
    Options All
       AllowOverride None
       Order allow,deny
       Allow from all
  5. And open http://localhost/extjs/
  6. Now You are a lazy person

One thought on “Create Alias in Apache2 Ubuntu 10.04

  1. 簡単にそれを取る:あなたはそれを満たすために飛び出すする必要はありません、急いで家を出ます。あなたが休暇にあるすべての後に、通常のスクリプトを下車人に会う、友達を作るとリラックス!

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