Go Back   UNIX e Linux Forum > Special Forum > Programmazione Web, Web 2.0 e mashups
.
Google Site



Programmazione Web, Web 2.0 e mashups Discuti Programmazione Web e Web Server Amministrazione, compresi LAMP, Apache, MySQL, Flash, HTML, SEO, mashups e Web API e altri argomenti.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Cerca in questo Thread Rate Thread Modalità di visualizzazione
  #1 (permalink)  
Old 05-22-2009
Utente Registrato
 

Iscriviti Data: maggio 2009
Interventi: 72
l'accesso al mio server è sempre consentito

Salve,

Non posso negare l'accesso al mio server. se la mia visita http://localhost Riesco a vedere sempre tutti i file.
Perché?



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








Codice:
<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>


grazie
Sponsored Links
  #2 (permalink)  
Old 05-22-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Località: Asia-Pacifico
Messaggi: 7.378
Vedi Apache mod_access doc.

Ecco un indizio:


Codice:
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 (permalink)  
Old 05-22-2009
Utente Registrato
 

Iscriviti Data: maggio 2009
Interventi: 72
Salve,

Ho modificato per


Codice:
<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>

ma tutto è ancora accessibile.

Ho anche cercato


Codice:
Order Deny,Allow
Deny from All

e


Codice:
Order Deny,Allow

Sono sicuro che il percorso della directory è corretta, perché l'indicizzazione funziona correttamente.
  #4 (permalink)  
Old 05-22-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Località: Asia-Pacifico
Messaggi: 7.378
Ti è riavviare apache dopo ogni modifica alla configurazione?
  #5 (permalink)  
Old 05-22-2009
Utente Registrato
 

Iscriviti Data: maggio 2009
Interventi: 72
sì!

sudo-k apachectl restart

e di aggiornare la cache firefox
Sponsored Links
Closed Thread

Segnalibri

Thread Tools Cerca in questo Thread
Cerca in questo Thread:

Ricerca Avanzata
Modalità di visualizzazione Vota questo thread
Vota questo thread:

Distacco regolamento
Tu non può post nuovo thread
Tu non può inviare una risposta
Tu non può postare allegati
Tu non può modificare i tuoi post

BB codice è Su
Smilies sono Su
[IMG] codice Su
Codice HTML è Chiuso
Trackbacks sono Su
Pingbacks sono Su
Refbacks sono Chiuso


Più di UNIX e Linux Forum Argomenti potreste trovare utili
Filo Thread Starter Forum Risposte Ultimo Post
Non hai i permessi per accedere a / su questo server. aneuryzma Programmazione Web, Web 2.0 e mashups 9 05-21-2009 03:08 PM
Può uno script gestita a livello locale l'accesso al server remoto il server? luna_soleil Shell scripting e di programmazione 3 02-26-2009 05:38 PM
limitare l'accesso a un server melanie_pfefer Solaris 1 02-25-2008 02:55 PM
E 'possibile accedere da un server database di un altro server. debu UNIX e avanzata per utenti esperti 1 05-20-2007 06:42 PM
Impossibile accedere ai file sul proprio server Djaunl UNIX for Dummies Domande & Risposte 3 07-20-2006 11:19 AM



Tutti gli orari sono GMT -4. La data di oggi è 11:54 AM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Traduzioni Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX e Linux Forum Content Copyright © 1993-2010. Tutti i diritti Reserved.Ad Management by RedTyger

Contenuti pertinenti URL da vBSEO 3.2.0