.htaccess file help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 247mg
    Yellowplum / 247mg
    • Feb 2008
    • 2162

    #1

    .htaccess file help needed

    we have taken CDN service for our paid areas which are protected by conventional .htacess file but issue is that CDN pull zone unable to fetch file bcz authorization required and 401 or 302 error coming when fetching file. When we remove .htaccess file cdn server successfully fetch files and get 200 response.

    Any idea how and what need to be added in .htaccess file to allow cdn server to fetch files with .htaccess turn on.

    please stick to topic.
    247mg.com - Indian Affiliate Program - Over 50+ Sites To Promote - Monetize Your INDIAN Traffic Today!
  • CurrentlySober
    Too lazy to wipe my ass
    • Aug 2002
    • 38944

    #2
    Originally posted by dpapa

    please stick to topic.

    NO!!!

    I like POOOOOO!!!!!!!!!!!!


    👁️ 👍️ 💩

    Comment

    • Mr. Stiff
      So Fucking Stiff!
      • Oct 2005
      • 493

      #3
      Code:
      AuthType Basic
      AuthName "Please Log In"
      AuthUserFile /some/path/.htpasswd
      Require valid-user
      Order deny,allow
      Deny from all
      Allow from 1.2.3.4
      Allow from 1.2.3.5
      Satisfy any
      where the ip's are those of the CDN host
      ICQ 208807506

      Comment

      • freecartoonporn
        Confirmed User
        • Jan 2012
        • 7683

        #4
        Originally posted by Mr. Stiff
        Code:
        AuthType Basic
        AuthName "Please Log In"
        AuthUserFile /some/path/.htpasswd
        Require valid-user
        Order deny,allow
        Deny from all
        Allow from 1.2.3.4
        Allow from 1.2.3.5
        Satisfy any
        where the ip's are those of the CDN host
        i guess , that would be wrong to place all cdn's ip there.

        instead try like this

        Code:
        AuthType Basic
        AuthName "Please Log In"
        AuthUserFile /some/path/.htpasswd
        Require valid-user
        Order allow,deny
        Allow from All
        Deny from none
        Satisfy any
        SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

        Comment

        Working...