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
精彩评论