Sym Links
am 15.10.2007 16:50:25 von Hans-Peter Sauer
I am trying to link to another directory but cannot get this to work. I
cannot seem to find proper instructions as to how to do this.
/usr/local/apache/share/original - this is the target folder.
xxx.com/test - is the url i want to type into my browser.
can anyone advise what i am doing wrong
DocumentRoot /usr/local/apache/share/new
ServerName xxx.com
Options FollowSymLinks
ln -s /usr/local/apache/share/original ./test
AllowOverride None
Order allow,deny
Allow from all
Re: Sym Links
am 15.10.2007 17:03:32 von Jim Hayter
Andrew wrote:
> I am trying to link to another directory but cannot get this to work. I
> cannot seem to find proper instructions as to how to do this.
>
> /usr/local/apache/share/original - this is the target folder.
> xxx.com/test - is the url i want to type into my browser.
>
> can anyone advise what i am doing wrong
>
>
> DocumentRoot /usr/local/apache/share/new
> ServerName xxx.com
>
> Options FollowSymLinks
> ln -s /usr/local/apache/share/original ./test
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is NOT an apache directive. It is an OS command line. You do this
once to create the symlink.
> AllowOverride None
> Order allow,deny
> Allow from all
>
>
>
>
Re: Sym Links
am 15.10.2007 17:07:30 von HansH
"Jim Hayter" schreef in bericht
news:13h70a5do2il6dd@news.supernews.com...
>>
>> DocumentRoot /usr/local/apache/share/new
>> ServerName xxx.com
>>
>> Options FollowSymLinks
>> ln -s /usr/local/apache/share/original ./test
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This is NOT an apache directive. It is an OS command line. You do this
> once to create the symlink.
>
Or you may use an alias (on those OSses not supporting symlinks)
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
HansH