I would just do:
```js
reqUrl = req.url.replace(/^https?:\/\/[^\/]*/, '');
```