title: How to change gulp port according to specific path
body: <p>I'm new with gulp i'm using gelp server for my application and i have a java server lanched on port 8080 i want to use oAuth2 for authentication in another project i used grunt an this how i redirected user to oAuth2</p>
  
  <p>here my gruntfile code </p>
  
  <pre><code>connect: {
    options: {
      port: 9000,
      // Change this to '0.0.0.0' to access the server from outside.
      hostname: 'localhost',
      livereload: 35729
    }, proxies: [
      {
        context: [
          '/_ah',
          '/secured',
          '/oauth2login',
          '/oauth2callback'
        ],
        host: 'localhost',
        port: 8080,
        https: false,
        changeOrigin: false,
        xforward: false
      }
    ]
  }
  </code></pre>
  
  <p>now i want to do same thing on gulp here my gulpfile.js code</p>
  
  <pre><code>var options = {
      port: 3000,
      ghostMode: {
          clicks: false,
          location: false,
          forms: false,
          scroll: true
      },
      injectChanges: true,
      logFileChanges: true,
      logLevel: 'debug',
      logPrefix: 'gulp-patterns',
      notify: true,
      reloadDelay: 0, //1000,
      online: false,
      proxies: [
      {
        context: [
          '/_ah',
          '/secured',
          '/oauth2login',
          '/oauth2callback'
        ],
        host: 'localhost',
        port: 8080,
        https: false,
        changeOrigin: false,
        xforward: false
      }
    ]
  };
  </code></pre>
  
  <p>i added proxies but didn't work i want to do this because in my app.run i want authentify user using oAuth2</p>
  
  <p>here my app.run</p>
  
  <pre><code>app.run(function($rootScope, datastoreUser){
  
    datastoreUser.LoginUser("me").then(function(result){
  
      console.log("User is authenticated");
      console.log(result);
  
    },function(error){
      console.log("An error occured user is not authenticated");
      console.log(error);
      window.location.href = '/oauth2login';
    })
  })
  </code></pre>