Question

Varnish Issue

Recently I configured Varnish on my blog http://www.bloggingcage.com/

On front end it is working awesome but when I am trying top open any post it is downloading one file automatically.

When I opened the file it has - <?php /**

  • Front to the WordPress application. This file doesn’t do anything, but loads
  • wp-blog-header.php which does and tells WordPress to load the theme.
  • @package WordPress */

/**

  • Tells WordPress to load the WordPress theme and output it.
  • @var bool */ define(‘WP_USE_THEMES’, true);

/** Loads the WordPress Environment and Template */ require( dirname( FILE ) . ‘/wp-blog-header.php’ );

How to solve this issue?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello there, <br>Can you give us a link of the guide you followed to setup Varnish?

Here are my logs <br> <br> 81 0.00 inf backend_busy - Backend conn. too many <br> 72 0.00 inf backend_reuse - Backend conn. reuses <br> 13 0.00 inf backend_toolate - Backend conn. was closed <br> 33 0.00 inf backend_retry - Backend conn. retry <br> 25 0.00 inf fetch_head - Fetch head <br> 34 0.00 inf fetch_bad - Fetch had bad headers <br> 24 0.00 inf fetch_close - Fetch wanted close <br> 59 0.00 inf fetch_oldhttp - Fetch pre HTTP/1.1 closed <br> 59 0.00 inf fetch_1xx - Fetch no body (1xx) <br> 13 . . n_wrk - N worker threads <br> 1 0.00 inf n_wrk_create - N worker threads created <br> 13 0.00 inf n_wrk_failed - N worker threads not created <br> 13 0.00 inf n_wrk_lqueue - work request queue length <br> 30 0.00 inf n_wrk_queued - N queued work requests <br> 2 0.00 inf n_wrk_drop - N dropped work requests <br> 1 . . n_backend - N backends <br> 10 . . n_expired - N expired objects <br> 10 . . n_lru_nuked - N LRU nuked objects <br> 1 0.00 inf s_sess - Total Sessions <br> 20 0.00 inf s_req - Total Requests <br> 10 0.00 inf s_pass - Total pass <br> 63 0.00 inf s_bodybytes - Total body bytes <br> 81 0.00 inf sess_pipeline - Session Pipeline <br> 72 0.00 inf sess_readahead - Session Read Ahead <br> 26 0.00 inf sess_herd - Session herd <br> 59 0.00 inf shm_records - SHM records <br> 26193 0.00 inf shm_writes - SHM writes <br> 285224 0.00 inf shm_flushes - SHM flushes due to overflow <br> 19 0.00 inf shm_cont - SHM MTX contention <br> 57 . . sms_nobj - SMS outstanding allocations <br> 69 . . sms_nbytes - SMS outstanding bytes <br> 5793 . . sms_balloc - SMS bytes allocated <br> 802 . . sms_bfree - SMS bytes freed <br> 59 0.00 inf n_ban_re_test - N regexps tested against <br> 1 0.00 inf n_ban_dups - N duplicate bans removed <br> 1 0.00 inf hcb_nolock - HCB Lookups without lock <br> 1 0.00 inf hcb_insert - HCB Inserts <br> 1 0.00 inf esi_errors - ESI parse errors (unlock) <br> 1 0.00 inf esi_warnings - ESI parse warnings (unlock) <br>