# Add prefix to cockpit base url

**URL:** <https://discourse.getcockpit.com/t/add-prefix-to-cockpit-base-url/506>\
**Category:** Support\
**Created:** [January 10, 2019, 5:37pm UTC](https://discourse.getcockpit.com/t/add-prefix-to-cockpit-base-url/506 "2019-01-10T17:37:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandro](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@alessandro](https://discourse.getcockpit.com/u/alessandro)\
**Post date:** [January 10, 2019, 5:37pm UTC](https://discourse.getcockpit.com/t/add-prefix-to-cockpit-base-url/506/1 "2019-01-10T17:37:33Z")

</div>

Hello,

I’m using cockpit cms with docker. Cockpit is exposed on my machine on localhost:8080.  
How to expose cockpit on localhost:8080/[prefix]/ where prefix can be something like ‘cockpit’ or ‘cms’.

I’d need to tell cockpit to refer to itself as localhost:8080/[prefix]/ and not just localhost:8080

Thank you
