Set fullpath correctly when being used as an HTTP proxy