开发者

Create a symbolic link on Linux for a domain name

开发者 https://www.devze.com 2023-02-06 02:46 出处:网络
I need to create a symbolic link mysit开发者_开发知识库e.com to point to a directory /home/drupal/sites/mysite

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

精彩评论

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