Sym Links
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
<VirtualHost *>
DocumentRoot /usr/local/apache/share/new
ServerName xxx.com
<Directory />
Options FollowSymLinks
ln -s /usr/local/apache/share/original ./test
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Re: Sym Links
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
>
> <VirtualHost *>
> DocumentRoot /usr/local/apache/share/new
> ServerName xxx.com
> <Directory />
> 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
> </Directory>
> </VirtualHost>
>
>
Re: Sym Links
"Jim Hayter" <see.reply.to [at] nowhere.invalid> schreef in bericht
news:13h70a5do2il6dd [at] news.supernews.com...
>> <VirtualHost *>
>> DocumentRoot /usr/local/apache/share/new
>> ServerName xxx.com
>> <Directory />
>> 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)
<alias /test /usr/local/apache/share/original>
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
HansH