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

    qual' è il file di conf giusto in apache2 ?

    Ciao a tutti,

    ho installato il web server Apache ver. 2 sul mio sistema linux versione Mandrake 10.0.1


    sul localhost nella document root ho cambiato la pagina index e sembra non ci siano problemi

    volendo però configurarlo per altri domini utilizzando virtualhost mi si sono un pò confuse le idee,
    ovvero nel file http2.conf

    ho trovato questa stringa


    ###
    ### Virtual Hosts
    ###
    # We include different templates for Virtual Hosting. Have a look in the
    # vhosts directory and modify to suit your needs.
    Include conf/vhosts/Vhosts.conf
    #Include conf/vhosts/DynamicVhosts.conf
    #Include conf/vhosts/VirtualHomePages.conf
    e questo è il file Vhost.conf
    ################# Vhosts.conf
    #This is where we store the VirtualHosts configuration.
    #
    #Since Apache 1.3.19, we modified the setup to include some nice tricks:
    #
    #- We added the User and Group directives so VirtualHosts now work with
    # suexec directive. If set, Apache will run all cgi scripts under that
    # user and group (provided the uid and gid are > 100 for security). The
    # directories and cgi files *must* belong to that user/group for the
    # feature to work
    #- We added the Setenv VLOG directive. This works in conjunction with
    # the CustomLog in common.conf. When Setenv VLOG is set, apache will
    # create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging
    # to access_log. Use this instead of defining a special logfile for
    # each vhost, otherwise you eat up file descriptors.
    #- You can also specify a path for the VLOG for each Vhost, for example,
    # to place the logs in each user's directory. However, if you want to
    # use the file for accounting, place it in a directory owned by root,
    # otherwise the user will be able to erase it.
    #- I suggest only including the ErrorLog *only* if the vhost will use
    # cgi scripts. Again, it saves file descriptors!
    #- We added the Rewrite directives so vhosts will work with the
    # PERLPROXIED configuration


    ################# IP-based Virtual Hosts
    #<VirtualHost 192.168.123.104>
    #User jmdault
    #Group jmdault
    #DocumentRoot /home/jmdault/public_html
    #ServerName test2.com
    #Setenv VLOG /home/jmdault/logs
    #ErrorLogs /home/jmdault/test2-error_log
    #RewriteEngine On
    #RewriteOptions inherit
    #</VirtualHost>

    ################# Named VirtualHosts
    #NameVirtualHost 111.222.33.44
    #<VirtualHost 111.222.33.44>
    #ServerName www.domain.tld
    #ServerPath /domain
    #DocumentRoot /web/domain
    #</VirtualHost>

    che mi fa presuppore che i parametri da configurare vanno settati li' e non nel file http2.conf come nella versione 1.3

    ho capito male o basta che aggiungo i parametri di configurazione alla fine di http2.conf ?

    [/QUOTE]
    Php4ever!

  2. #2
    credo tu li possa mettere in entrambi i posti, però se hanno creato un file apposito io userei quello, almeno viene tutto + ordinato

  3. #3
    Grazie Bubu,

    appena fatto .. utilizzando il Vhost.conf ma poi mi nega il permesso di accedere al localhost dal browser anche se in questo caso è piu' probabile che sia un errore mio di config. o di permessi

    cmq prima di aprire post inutili e fare domande da per poi scoprire che ho sbagliato a scrivere file di conf. :maLOL:

    qualcuno mi puo' dire con certezza se devo configurare i virtualhost su http2.conf o su Vhost.conf? o se come dice bubu è indifferente?



    P.s.nel frattempo provo a modificare l' http2.conf
    Php4ever!

  4. #4
    dal momento che viene incluso .. e' indifferente.

    piu' ordinato pero' ... come dice bubu...


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  5. #5
    Grz Piero.Mac

    allora riprovo su Vhosts.conf
    Php4ever!

  6. #6
    ok, tutto ok funziona in tutte e due i casi
    Php4ever!

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 © 2025 vBulletin Solutions, Inc. All rights reserved.