[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] "ln -s" och apache 2



Håkan Larsson skrev:
> Jesper K. Pedersen skrev:
>> Og du skal huske at /download/pub og /testmapp sikkert ikke må vises
>> iht. apache's standard <Directory />
>> Du skal give tilladelse med en <directory dine_biblioteker> osv
>> rettigheder til at vises.
>>
>> Mvh
>> JesperKP
>>
>>
> Jag "famler i mörkret" vet inte vad jag ska prova. Hur ska det se ut?
> 
> Hur ska raderna igentligen vara?
> 
> <Directory /download/pub>
>         Options Indexes FollowSymLinks
>         Options +Includes -Indexes
> </Directory>


det er jo nok ikke så godt, +Indexes og -Indexes i Options...

men jeg tror du prøver 2 forskellige ting, "userdir" virker på en anden
måde, og du har noget med FollowSymLinks som ikke helt vil virke.

Første opgave må være at få symlinks til at virke.


det kunne være:

<Directory "/download/pub">
    Options Indexes FollowSymlinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>



Ovenstående burde tillade download/pub selvom der et sted skulle være en global
der forbyder alt, pånær det som explicit senere tillades:
<Directory />
       AllowOverride None
       Order Deny,Allow
       Deny from all
</Directory>



> 
> Dessa rader ger ingen skillnad.
> Om jag surfar till http://min.domän.nu/filer
> ser jag
> /var/www/html/global/filer/backup
> men inte
> /var/www/html/global/filer/~pub (som pekar på /download/pub)

ja men nu er det vist userdir funktion du bikser med, det virker på en lidt
anden måde.

Kan vi ikke lige tage en ting ad gange og får det til at virke?

I ubuntu ser Userdir i øvrigt ud som følgende:

<IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root

        <Directory /home/*/public_html>
                AllowOverride FileInfo AuthConfig Limit Indexes
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Order allow,deny
                        Allow from all
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Order deny,allow
                        Deny from all
                </LimitExcept>
        </Directory>
</IfModule>


Se på Userdir, du har måske også syntax lidt forkert:

http://httpd.apache.org/docs/2.0/mod/mod_userdir.html

Der er nogle varianter på siden:
for   http://www.foo.com/~bob/one/two.html

UserDir directive used 	Translated path
UserDir public_html	~bob/public_html/one/two.html
UserDir /usr/web	/usr/web/bob/one/two.html
UserDir /home/*/www	/home/bob/www/one/two.html

Dvs. dir eksempel med UserDir public_html /download/pub

1. led i /home/USER/public_html/

 er det ikke muligt prøv

2. /download/pub/USER/one/two.html



> You don't have permission to access /filer/pub on this server.
> Apache/2.2.3 (CentOS) Server at www.sm6tpn.mine.nu Port 443

Port 443 ?
er det SSL ?

Det burde apache ikke svare med på et http:// request



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-04-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *