How to change the default URL from "localhost:8080/bonita" to "localhost:8080"?
Hello,
I tried to change the Bonita BPM (Community - Version 7.1.3) default URL, from "http://localhost:8080/bonita" to "http://localhost:8080/", but I did not succeed.
I always get the following error: "org.bonitasoft.console.common.server.utils.DefaultTenantIdException".
I followed every single suggestions that I found on the Community website, and other websites also, but with no success.
Please give any instructions if anybody ever succeeded in changing the dafault URL of Bonita BPM installation.
Thank you in advance.
Best regards,
Andi
In your tomcat home, edit /webapps/ROOT/WEB-INF:, and comment out this section:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
metadata-complete="true">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
</web-app>
Then, Add this section:
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
Then rename the existing /webapp/ROOT/index.jsp to something else. Create a new index.jsp:
Hi,
What I can suggest is to create an `index.html` page in Tomcat `webapps/ROOT` folder with the following content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script>
window.setTimeout(function() {
window.location = "/bonita";
}, 5000);
</script>
<title>Bonitasoft</title>
<meta name="robots" content="noindex" />
</head>
<body>
<img src="./img/logo.png" alt="Bonitasoft">
<p>After 5 seconds you will be redirected automatically to <a href="/bonita">/bonita</a></p>
</body>
</html>
You must also delete or rename the `index.jsp` file located in `webapps/ROOT` folder.
--
Antoine
It's not really recommended to fiddle with the directory structures of platform, and using /bonita allows you to use multiple applications on the same server...
"http://localhost:8080/bonita"
"http://localhost:8080/mySQL"
"http://localhost:8080/kmHelpDesk"
etc.
But if you really must, then I suggest you leave the original structure alone and use Redirection. See the following:
https://css-tricks.com/redirect-web-page/
https://en.wikipedia.org/wiki/URL_redirection#Manual_redirect
https://www.w3.org/QA/Tips/reback
http://www.wikihow.com/Redirect-a-URL
regards
Seán
PS: If this reply answers your question, please mark a resolved.
Comments
Actually out of interest why would you want to?
Localhost is your machine, no-one-elses...tired of typing the /bonita? :)