I use express framework and here is my app.js file

```
var express = require('express');
var app = module.exports = express();        
var config = require('./config.js')(app, express); // I include config.js here

var models = {};                                                       
models.item = require('./models/item')(app.mongoose, app).model;

require('./routes')(app, models);

app.listen(process.env.PORT || 3000);

```

As you can see I include config.js file on 3 line. Here is my config.js file:

```
module.exports = function(app, express){
    var config = this;

    //generic config
    app.configure(function(){           
        app.set('CURRENT_URL', '***'); // I don't know how to get current URL here
        app.use(express.bodyParser());
        app.use(express.cookieParser());
        app.use(express.session({ secret: 'topsecret' }));     
        app.use(express.methodOverride());
        app.use(app.router);
        app.use(express.static(__dirname + '/public')); 
    });

    app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));

    return config;
};

```

On 6 line I set CURRENT\_URL to '*\**'. How to detect current URL in this place?