Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    visualizzare home page utente

    ciao,

    sulla mia fedora ho creato un utente web che ha la sua home in /home/web. come faccio a visualizzare sul web un file index.php all'interno di web?
    Ho provato http://mioserver/~web ma non va. con suse quando si crea un utente viene create una dir public_html. con fedora come funziona?


    ciao grazie

  2. #2
    metti index.php in public_html/

  3. #3
    ma non esiste una dir public_html creata di default. questo avviene con suse.

  4. #4
    allora creala e aggiungi la seg sez al file http.conf

    <Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
    Order deny,allow
    Deny from all
    </Limit>
    </Directory>

  5. #5
    nel file httpd.conf ho trovato e decommentato queste righe

    <Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    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>


    ho riavviato apache ma non funziona..
    ovviamente ho creato la public_html all'interno di home/web. web è l'utente.

  6. #6
    dovrebbe

  7. #7
    il problema era qui

    <IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    #UserDir disable <------------ commentare questo

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #
    UserDir public_html <---------- decommentare questo

    </IfModule>

    per il resto grazie 1000

  8. #8
    Giusto anche quella

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.