ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unsolved Apache config problem

    IT Discussion
    apache
    4
    4
    452
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      1337
      last edited by

      I have a problem that I don't know how to solve.

      When I use Require valid-user in the conf file (to enable Apaches authentication) I also inadvertently gives access to every type of file including .htaccess .

      <VirtualHost *:443>
         <Location />
            AuthType ....
            ........
            Require valid-user
         </Location>
      </VirtualHost>
      

      Access has been denied earlier in the conf file with:

      <FilesMatch "^\.ht">
         Require all denied 
      </FilesMatch>
      

      How can I get Apache to require a valid user but still honor it's prior access control?

      1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by JaredBusch

        Un-sober Jared has no idea. Sorry.

        1 Reply Last reply Reply Quote 2
        • ITivan80I
          ITivan80
          last edited by

          @Pete-S So sorry you are going through this issue. When trying to config the Apache are you in root user? and If you are you need to go to the root file system where the Apache is located and see if it will let you in that way. That way you can make all the necessary adjustment to your specifications or configurations.

          1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato
            last edited by

            Depends on the Apache version, what version do you have 2.2 or 2.4?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post