开发者

Create a symbolic link on Linux for a domain name

I need to create a symbolic link mysit开发者_开发知识库e.com to point to a directory /home/drupal/sites/mysite Where do I cd into to create this? Do I need to run this command in /home/drupal/sites/mysite or can I be anywhere on the server to do this? Can this be done in the vhosts file instead?


Try this in the directory where you want the link created:

ln -s /home/drupal/sites/mysite mysite.com

See: http://frankmash.blogspot.com/2007/11/ln-s-examples.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜