Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. After start php script and successful implementation, server send all request 504 error
  2. <?php
  3.  
  4. $data = array('url','url','url'...'url');
  5. foreach($data AS $v) {
  6.   shell_exec('wget -O /dev/null '.$v);
  7. }
  8.        
  9. <?php
  10. ignore_user_abort(true);
  11. set_time_limit(0);
  12. ...
  13.        
  14. proxy_pass http://apache_server:80;
  15. ....
  16. proxy_read_timeout 900s;
  17. proxy_send_timeout 900s;