The UNIX and Linux Forums  
Hej och välkommen från USA till UNIX och Linux Forum! Tack för ditt besök och gå med i vår globala gemenskapen.

Go Back   UNIX och Linux Forum > Särskilda Forum > Webb Programmering, Web 2.0 och mashups
.
google unix.com



Webb Programmering, Web 2.0 och mashups Diskutera Web Programming och Web Server administration, inklusive LAMP, Apache, MySQL, Flash, HTML, SEO, mashups och andra Web API och ämnen.

Mer UNIX och Linux Forum Ämnen Du kan hitta Helpful
Tråd Thread Starter Forum Svar Senaste Inlägg
Du har inte behörighet att komma åt / på den här servern. aneuryzma Webb Programmering, Web 2.0 och mashups 9 05-21-2009 02:08
Kan ett script runned i lokal server tillgång fjärrservern? luna_soleil Shell-programmering och Skript 3 02-26-2009 05:38
begränsa tillträdet till en server melanie_pfefer Sun Solaris 1 02-25-2008 02:55
Är det möjligt att komma åt från en server i databasen i en annan server. debu UNIX för avancerade & Expertanvändare 1 05-20-2007 05:42
Kan inte komma åt filer på egen server Djaunl UNIX for Dummies Frågor & Svar 3 07-20-2006 10:19

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Sök i denna tråd Rate Thread Visningslägen
  #1 (permalänk)  
Old 05-22-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: maj 2009
Inlägg: 60
tillgång till min server är alltid tillåtet

Hej,

Jag kan inte neka tillgång till min server. Om jag besöker http://localhost Jag kan alltid se alla filer.
Varför?


Kod:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Deny from All
</Directory>






Kod:
<Directory "/Users/aneuryzma/Sites">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
                               
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Deny from all

</Directory>

tack
  #2 (permalänk)  
Old 05-22-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administratör
  
 

Join Date: Sep 2000
Ort: Asia Pacific
Inlägg: 6.671
Se Apache mod_access dok.

Här är en ledtråd:

Kod:
SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in
<Directory /docroot>
    Order Deny,Allow
    Deny from all
    Allow from env=let_me_in
</Directory>
  #3 (permalänk)  
Old 05-22-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: maj 2009
Inlägg: 60
Hej,

Jag har modifierats för att

Kod:
<Directory "/Users/aneuryzma/Sites">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
                               
    #
    # Controls who can get stuff from this server.
    #
    Order Deny,Allow
    Deny from all
    Allow from env=let_me_in

</Directory>
men allt är tillgängliga.

Jag har också försökt

Kod:
Order Deny,Allow
Deny from All
och

Kod:
Order Deny,Allow
Jag är säker på att sökvägen är korrekt, eftersom indexeringen fungerar.
  #4 (permalänk)  
Old 05-22-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administratör
  
 

Join Date: Sep 2000
Ort: Asia Pacific
Inlägg: 6.671
Visste du startar apache efter varje konfiguration förändras?
  #5 (permalänk)  
Old 05-22-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: maj 2009
Inlägg: 60
ja!

sudo apachectl-k starta

och uppdateras Firefox cache
Closed Thread

Komihåglista

Thread Tools Sök i denna tråd
Sök i denna tråd:

Avancerad sökning
Visningslägen Betygsätt denna tråd
Betygsätt denna tråd:

Utstationering Regler
Du får inte efter nya trådar
Du får inte efter svar
Du får inte skicka bilagor
Du får inte redigera dina inlägg

BB-kod är
Smilies är
[IMG] kod
HTML-koden är Av
Trackback är
Pingbacks är
Refbacks är




Alla tider är GMT -4. Klockan är nu 08:14.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Översättningar Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX och Linux Forum Innehållet upphovsrättsskyddat © 1993-2009. All Rights Reserved.Ad förvaltning RedTyger

Content Relevant webbadresser från vBSEO 3.2.0