httpd.conf file - need help on this

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spacedog
    Yes that IS me. Bitch.
    • Nov 2001
    • 14149

    #1

    httpd.conf file - need help on this

    Does each directory in the root have its own httpd.conf file?

    I am trying to find mine so I can edit it. Obviously I won't be able to do it in ftp so I need to go through ssh but I don't know the commands for this.

    Anyone have step by step instructions for opening httpd.conf & making edits to it
  • prodiac
    Confirmed User
    • Sep 2003
    • 419

    #2
    Only if the main httpd.conf file is configured to include a separate config file for each user .. otherwise, by default there is just one config in the main apache config directory.

    Most control panels do use separate config files for each user though..

    Comment

    • borked
      Totally Borked
      • Feb 2005
      • 6284

      #3
      # locate httpd.conf
      /etc/httpd/httpd.conf
      # pico /etc/httpd/httpd.conf

      Ctrl-O Ctrl-X to save and exit after editing.

      Not all vhosts need have their own httpd.conf file, though it makes for easier management - if you want each vhost to have it's own conf file, add this to the end of the main httpd.conf:

      Include /etc/httpd/vhosts/*.conf

      For coding work - hit me up on andy // borkedcoder // com
      (consider figuring out the email as test #1)



      All models are wrong, but some are useful. George E.P. Box. p202

      Comment

      • _Lush_
        Confirmed User
        • Jul 2005
        • 536

        #4
        you would probably be safer if you let your host do the mods for you since it isnt just a matter of opening the file and making modifications you also need to reload or restart apache after any mods to the file plus you could really muss things up if you dont know what your doing.

        Btw what are you exactly trying to do? are you just wanting to add something to the virtual conf of a domain on your server?
        IcQ 50611033

        Comment

        • spacedog
          Yes that IS me. Bitch.
          • Nov 2001
          • 14149

          #5
          Originally posted by lushy
          you would probably be safer if you let your host do the mods for you since it isnt just a matter of opening the file and making modifications you also need to reload or restart apache after any mods to the file plus you could really muss things up if you dont know what your doing.

          Btw what are you exactly trying to do? are you just wanting to add something to the virtual conf of a domain on your server?
          Yes. I am trying to add string of code to httpd.conf file of a particular domain on the server.

          yes, it does need to be restarted too, so I just asked hosting company to do it.. I decided I don't want to fuck with it.

          Comment

          • BigBen
            Confirmed User
            • Nov 2004
            • 2299

            #6
            You should have your host do it for you. Or, use .htaccess.

            Otherwise, I use vi to edit the file and you can restart with 'apachectl restart'

            Edit - you already asked your host. Good idea.

            Comment

            Working...