LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2002, 04:37 PM   #1
jzs9783
LQ Newbie
 
Registered: Jun 2002
Location: ny
Posts: 2

Rep: Reputation: 0
Question apache linking question


a couple days ago i installed mandrake 8.2 on my computer, making it a dual boot with win2k prof. Everything works great (after a couple trivial problems) and my friend mentioned something i could do but he's not around to tell me how to do it (gone for a couple weeks).

i have been running apache on my win2k partition for a long time, and i have everything all set up there. my friend said i could make a link so that when people go to http://my_site/gallery that it will point to my windows partition. it's set up so that /c/Program Files/Apache Group/Apache/htdocs/gallery is the windows path, but when i try using "ln" it yells at me for trying to make multiple links without the last arg being a directory. i'm new to making links, so what is wrong with the following?:

ln -s /c/Program Files/Apache Group/Apache/htdocs/gallery/index.php index


side note: my win2k partition is fat32 so i can access the files (i listen to my mp3s with XMMS from it just fine)

Thanks for any help at all - i have searched many forums and linux sites but haven't come across a solution to this problem.
 
Old 06-22-2002, 05:30 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you use it like this

ln -s /path/filename /path/link

the space in your file / folder name will cause a problem. put the name in quotes

example

mkdir test folder

will create two folders, one named test and the other named folder

mkdir "test folder" will make a single folder with that name.
 
Old 06-22-2002, 05:52 PM   #3
jzs9783
LQ Newbie
 
Registered: Jun 2002
Location: ny
Posts: 2

Original Poster
Rep: Reputation: 0
ok, that made the link correctly. now how would i go about getting that to redirect to the link location when someone views my site? (sorry for this newbie-ness )
 
Old 06-22-2002, 06:19 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
usually the DocumentRoot for apache is in /var/www/html

if this is your case then link the html folder to the folder where your index file is. requires moving or removing the current html folder.

ln -s /PathToWebsiteRoot /var/www/html

or just make the folder where the site is the DocumentRoot for apache.

Last edited by DavidPhillips; 06-22-2002 at 06:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Apache and Tomcat bstuart Linux - Software 1 07-11-2005 04:13 AM
linking mrtg and apache pkrishna10 Linux - Software 3 12-15-2004 05:06 PM
Linking mrtg with apache pkrishna10 Linux - Software 0 12-15-2004 04:53 AM
Linking Apache and Tomcat kpmaddenuk Linux - Software 4 09-09-2004 12:09 PM
soft linking for apache? theserge Linux - Software 5 11-26-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration