Title: 401 Unauthorized Errors
Last modified: October 6, 2017

---

# 401 Unauthorized Errors

 *  Resolved [garfhuk](https://wordpress.org/support/users/garfhuk/)
 * (@garfhuk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/401-unauthorized-errors/)
 * Since the last release, we have been experiencing issues with any Purge command–
   i.e. it isnt working. We get the following:
 * > **Error http_request_failed**
   >  – cURL error 28: Connection timed out after 
   > 5000 milliseconds Trying to purge URL :[https://10.123.456.78/.*](https://10.123.456.78/.*)
   > => 401 Unauthorized **Unauthorized** This server could not verify that you 
   > are authorized to access the document requested. Either you supplied the wrong
   > credentials (e.g., bad password), or your browser doesn’t understand how to
   > supply the credentials required.
 * I think the issue is to do with this line of code (Line 393):
 * `$schema = apply_filters('vcaching_schema', is_ssl() ? 'https://' : 'http://');`
 * Now our SITE uses SSL/HTTPS (which is correct), but the internal IPs we have 
   set in the Varnish Cache IPs Settings tab** DO NOT**. This means when you make
   the call to purse, you are prefixing HTTPS incorrectly.
 * **My suggestion:** A Varnish Cache Settings checkbox called “IPs use HTTPS” and
   check for that when doing the purge – basically an override.
 * **Impact: **We have 50 odd active sites currently that cannot use Varnish Cache
   because of this.
 * Other than that, a beautiful day 🙂
    -  This topic was modified 8 years, 7 months ago by [garfhuk](https://wordpress.org/support/users/garfhuk/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Razvan Stanga](https://wordpress.org/support/users/razvanstanga/)
 * (@razvanstanga)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/401-unauthorized-errors/#post-9562592)
 * This option is already done. I have to push the modifications. I will do that
   asap.
 *  Plugin Author [Razvan Stanga](https://wordpress.org/support/users/razvanstanga/)
 * (@razvanstanga)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/401-unauthorized-errors/#post-9562660)
 * 1.6.6 is available with “Use SSL on purge requests” option.
    Please test it and
   post feedback. Thanks.
    -  This reply was modified 8 years, 7 months ago by [Razvan Stanga](https://wordpress.org/support/users/razvanstanga/).
 *  Thread Starter [garfhuk](https://wordpress.org/support/users/garfhuk/)
 * (@garfhuk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/401-unauthorized-errors/#post-9562969)
 * Worked a treat! Thank you very much for the speedy turnaround. Open Source wins
   again! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘401 Unauthorized Errors’ is closed to new replies.

 * ![](https://ps.w.org/vcaching/assets/icon-256x256.png?rev=1293998)
 * [Varnish/Nginx Proxy Caching](https://wordpress.org/plugins/vcaching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vcaching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vcaching/)
 * [Active Topics](https://wordpress.org/support/plugin/vcaching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vcaching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vcaching/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [garfhuk](https://wordpress.org/support/users/garfhuk/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/401-unauthorized-errors/#post-9562969)
 * Status: resolved