Koes Bong
Koes Bong

Reputation: 1113

Why does symlink create an unnecessary "folder"?

Say the root folder on my server is /home/bong/www/, so mydomain.com will serve up index.php from /home/bong/www/.

Then I cloned an hg repository and placed it at /home/bong/hg/hgrepo/.

When I am on /home/bong/ I created a symlink as follow so that going to mydomain.com will serve up content from the hg/hgrepo directory:

ln -s hg/hgrepo www

When I go into www, I see hgrepo -> hg/hgrepo

Problem is then when i go to mydomain.com, it still doesn't work ... but mydomain.com/hgrepo does.

What did I do wrong?

Upvotes: 0

Views: 329

Answers (1)

Kirk Strauser
Kirk Strauser

Reputation: 30977

I'm betting that www already existed, so when you created the link, it placed it inside the directory that was already there. Solution: delete www then create the link again.

Upvotes: 3

Related Questions