简体   繁体   中英

Create a symbolic link on Linux for a domain name

I need to create a symbolic link mysite.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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM