Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > ln -s problem

ln -s problem
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2005
Status: Offline
Reply With Quote
Jul 13, 2005, 12:15 PM
 
Need to link from the site_dev directory to www directory.

[PHP]
-bash-2.05b$ ls
conf site_dev mail public_ftp public_html tmp www
-bash-2.05b$ ln -s dhtmlkitchen_dev/ www
[/PHP]
     
Fresh-Faced Recruit
Join Date: Jul 2005
Status: Offline
Reply With Quote
Jul 13, 2005, 12:16 PM
 
I want to make it so that when you go to http://www.site.com/, or http://site.com/ , then you can see index.html in site_dev. Is it possible?
     
Mac Elite
Join Date: Sep 2000
Location: Rochester, NY, USA
Status: Offline
Reply With Quote
Jul 13, 2005, 12:48 PM
 
I'm not sure what the web-server aspects of this are, but if you want to make a link using ln -s, the first field after the command should contain the file or directory you want to link to, and the second contains the name of the new link target you want to create.

So, if www exists, and dhtmlkitchen_ev does not, you should type:

ln -s www dhtmlkitchen_dev

and the dhtmlkitchen_dev directory will point to the www directory.

Member of the the Stupid Brigade! (If you see Sponsored Links in any of my posts, please PM me!)
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jul 13, 2005, 09:26 PM
 
Yes, it's possible, but using symlinks is not the way to do it. You need to have access to the httpd configuration file for your site (possibly in http.conf itself, or (more likely) included into it) and the server's DNS configuration files as well. Depending on where you're hosted, they might have a Web-based interface for you to do this (e.g., CPanel). If you're hosting yourself, look up "named virtual hosts" (ServerAlias, specifically) in the Apache documentation and the documentation for whatever DNS you're using (often BIND).
[Wevah setPostCount:[Wevah postCount] + 1];
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:32 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2