# How to configure context-root from web.xml

**URL:** <https://forum.payara.fish/t/how-to-configure-context-root-from-web-xml/799>\
**Category:** Technical Discussion\
**Created:** [March 23, 2024, 11:05pm UTC](https://forum.payara.fish/t/how-to-configure-context-root-from-web-xml/799 "2024-03-23T23:05:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cambazz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/cambazz/32/242_2.png) [@cambazz](https://forum.payara.fish/u/cambazz)\
**Post date:** [March 23, 2024, 11:05pm UTC](https://forum.payara.fish/t/how-to-configure-context-root-from-web-xml/799/1 "2024-03-23T23:05:21Z")

</div>

Hello,

I can change the context path from the admin console, but how can I make my app have a context-root?

It has been a long time since I used payara, and we used to be able to do this. Basically, I would like to deploy the web application to root “/”

However adding / to web.xml inside tags, causes error.

Best Regards,  
C.
