[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Using symbolic links in DocumentRoot directive
- Subject: RE: [cobalt-users] Using symbolic links in DocumentRoot directive
- From: HORVATH Ferre <FHORVATH@xxxxxxxxxxxxxxxx>
- Date: Fri Jan 7 20:38:01 2000
Wrong! Apace doesn't need a real path.
On our unix server we have
maindomain on /usr/home/fenics/usr/local/etc/httpd/htdocs
/www directs to /usr/home/fenics/usr/local/etc/httpd
virtual hosts on
/usr/home/fenics/usr/local/etc/httpd/htdocs/hosts/virtdomain.com
/hosts directs to same dir
in /usr/home/fenics/usr/local/etc/httpd/conf/httpd.conf we use
<VirtualHost virtdomain.com>
ServerName virtdomain.com
ServerAlias www.virtdomain.com
DocumentRoot /hosts/virtdomain.com
</VirtualHost>
it works fine!
Regards
Ferre
-----Original Message-----
From: guyver@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:guyver@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday 5 January 2000 16:45
To: Cobalt Mailinglist
Cc: neil@xxxxxxxxxx
Subject: Re: [cobalt-users] Using symbolic links in DocumentRoot
directive
I could be wrong (see the FAQ's on http://www.apache.org) but I'm
virtually certain you can't.
Apache wants the REAL path. I'm not quite sure why it's so fussy, but it's
probably a security thing. After all symlinks can change to other
locations with or without root etc so maybe it's designed to stop that
from happening.
--Neil
On Wed, 5 Jan 2000, manitu wrote:
> Hello,
>
> there was some posts on the topic "How do I have a second domain pointing
to
> an existing account(virtual site)". Most replies stated to add a
VirtualHost
> directive into an separate file included in the httpd.conf file. This
works
> fine for me except for the following.
>
> Here's one of my directives I have added:
>
> <VirtualHost ip.number.here>
> ServerName www.seconddomain.com
> DocumentRoot /home/sites/www.firstdomain.com/web
> </VirtualHost>
>
> The problem is that the DocumentRoot directive does not work when using
> http://www.firstdomain.com, only when using the site number, e.g.
> DocumentRoot /home/sites/siteX/web. The www.firstdomain.com is a symbolic
> link generated by the Cobalt UI and works fine, e.g. via telnet.
>
> I have tried multiple things without any success. For instance I have
tried
> to add a "Options +FollowSymLinks" directive, no result.
>
> When trying to access the www.seconddomain.com I always get an "403 Access
> forbidden" error via http.
>
> Does anybody know how to tell Apache to accept symbolic links here ?
>
> Any help would be appreciated, and I could imagine that there are others
on
> the list that also are.
>
> Manuel
>
>
>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users