Wildcards in AllowedHandlers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suhaskhare
    Member
    Forum ExplorerTechnical Associate
    • Mar 2021
    • 70

    #1

    Wildcards in AllowedHandlers

    Hi,

    I just want to put each and every request for vhost in LVE. So can I just use wildcard for AllowedHandlers??

    Like AllowedHandlers * (any handler)
    AllowedHandlers */* (Any mime type)

    Specifying all mime types individually would be pain.

    Regards,
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    This is very good idea. We will add it in the future version.
    Not sure how practical it is to add LVE for static content (it does create overhead), but adding regexp to AllowedHandlers makes a lot of sense.

    Comment

    • suhaskhare
      Member
      Forum ExplorerTechnical Associate
      • Mar 2021
      • 70

      #3
      Adding static content to LVE is just for making use of maxentryprocs.. so no site would end up taking up all apache child server process (and thereby eliminate the use of mod_bw we use currently).

      Hoping to see this feature in near future..

      Regards,

      Comment

      • iseletsk
        Senior Member
        • Dec 2017
        • 1199

        #4
        I will need to do some benchmarking. The cost of serving static pages is so low (as long as they are small) -- that rejecting page via LVE might cost as much (or close) as serving the page. Especially if you are in worker mode.
        Of course if someone is serving multi megabyte files -- that is another story.
        Anyway -- we will add regexp support for sure.

        Comment

        • suhaskhare
          Member
          Forum ExplorerTechnical Associate
          • Mar 2021
          • 70

          #5
          Also, if I am making use of mod_fastcgi for php and mod_hostinglimit for others, I would definitely like to have exception list for wild card..

          Something like below

          <IfModule mod_hostinglimits.c>
          AllowHandlers * Except fcgid-script
          </IfModule>

          Regards,

          Comment

          • iseletsk
            Senior Member
            • Dec 2017
            • 1199

            #6
            Once again -- makes a lot of sense.
            We will make it Allow/Deny scheme, like:
            AllowHandlers
            DenyHandlers

            like it is done in other parts of apache. Does it make sense?

            Comment

            • suhaskhare
              Member
              Forum ExplorerTechnical Associate
              • Mar 2021
              • 70

              #7
              Yes sounds fine..

              Regards,

              Comment

              Working...