2016-04-06 32 views
0

BenTarayıcı Sync Vekil Ara Katman

böyle Tarayıcı Sync başlatmak vekil katman ilgili bir sorum var:

gulp.task('browser-sync', function() { 
    files = [ 
     '**/*.php' 
    ]; 
    browserSync.init(files,{ 
     open:false, 
     port: 3000, 
     ui: { 
      port: 3000 + 1 
     }, 
     proxy: { 
      baseDir: "./", 
      target : "http://example.com", 
     } 
    }); 
}); 

Ve Ancak http://127.0.0.1:3000

server { 
    listen EXTERNAL_IP:80; 
    server_name development.example.com; 
    location/{ 
     proxy_pass http://127.0.0.1:3000; 
    } 
} 

için proxy nginx kullanmak tarayıcı-senkronizasyonu, http://development.example.com yerine http://development.example.com yerine tarayıcı senkronizasyonunu nasıl arayacağını söyler http://development.example.com ? Teşekkürler!

cevap

0
server { 
    listen EXTERNAL_IP:80; 
    server_name development.example.com; 
    location/{ 
     proxy_set_header Host $host; 
     proxy_set_header X-Real-IP $remote_addr; 
     proxy_pass http://127.0.0.1:3000; 
    } 
} 

Aslında bir nginx şey :)

oldu
İlgili konular