On 2024-03-08, James Cook <falsif...@falsifian.org> wrote:
> On Fri, Mar 08, 2024 at 04:28:52PM +0300, Mark wrote:
>> Greetings.
>> 
>> Trying to figure out the mailman configuration on OpenBSD.
>> 
>> What is the equivalent of the following server block in httpd?
>> 
>> "<Directory /var/lib/mailman/archives/>
>>     Options FollowSymLinks
>>     AllowOverride None
>> </Directory>"
>> 
>> Does the httpd even support following symlinks?

base httpd doesn't support _not_ following symlinks. 

> httpd follows symlinks for me. I just tried making a text file a.txt
> in /var/www/htdocs, and making a symlink with ln -s b.txt a.txt,
> and http://localhost/b.txt gets the content of a.txt.
>
> Keep in mind httpd by default runs chrooted to /var/www, so if you
> want to use absolute paths you will need to leave out /var/www. For
> example if you want c.txt to be a a symlink pointing to
> /var/www/htdocs/a.txt you could run
>
>       ln -s /htdocs/a.txt symlink_file_name.txt

And, importantly (given the config snippet), /var/lib/mailman won't be
accessible.


-- 
Please keep replies on the mailing list.

Reply via email to