Virtual Hosting in Tomcat and Xampp
We have windows based XAMPP webserver which has built-in tomcat server. I have deployed an app on tomcat and having issue while mapping url to application.
Xampp (80,443) and tomcat (9091,9093) are running on different ports. I have configured server.xml but when I am trying to access mapped url, its not reachable. I checked in network tab on browser inspector it is trying to reach on server's port 80.
Below is configuration part from server.xml
apache tomcat xampp
add a comment |
We have windows based XAMPP webserver which has built-in tomcat server. I have deployed an app on tomcat and having issue while mapping url to application.
Xampp (80,443) and tomcat (9091,9093) are running on different ports. I have configured server.xml but when I am trying to access mapped url, its not reachable. I checked in network tab on browser inspector it is trying to reach on server's port 80.
Below is configuration part from server.xml
apache tomcat xampp
You should add lot of more details:server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...
– Selaron
Nov 22 '18 at 12:37
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
FYI never post text as an image. A copy-paste is quite easy (and then use icon{}
in the editor to make it formatted as code).
– Nic3500
Nov 22 '18 at 13:59
You have both Apache httpd and Apache Tomcat. If you ask forhttp://SOMETHING
is will go to port 80.https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so:http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.
– Nic3500
Nov 22 '18 at 14:02
add a comment |
We have windows based XAMPP webserver which has built-in tomcat server. I have deployed an app on tomcat and having issue while mapping url to application.
Xampp (80,443) and tomcat (9091,9093) are running on different ports. I have configured server.xml but when I am trying to access mapped url, its not reachable. I checked in network tab on browser inspector it is trying to reach on server's port 80.
Below is configuration part from server.xml
apache tomcat xampp
We have windows based XAMPP webserver which has built-in tomcat server. I have deployed an app on tomcat and having issue while mapping url to application.
Xampp (80,443) and tomcat (9091,9093) are running on different ports. I have configured server.xml but when I am trying to access mapped url, its not reachable. I checked in network tab on browser inspector it is trying to reach on server's port 80.
Below is configuration part from server.xml
apache tomcat xampp
apache tomcat xampp
edited Nov 22 '18 at 13:58
Nic3500
3,32281829
3,32281829
asked Nov 22 '18 at 12:30
Rohit BuwaRohit Buwa
34
34
You should add lot of more details:server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...
– Selaron
Nov 22 '18 at 12:37
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
FYI never post text as an image. A copy-paste is quite easy (and then use icon{}
in the editor to make it formatted as code).
– Nic3500
Nov 22 '18 at 13:59
You have both Apache httpd and Apache Tomcat. If you ask forhttp://SOMETHING
is will go to port 80.https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so:http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.
– Nic3500
Nov 22 '18 at 14:02
add a comment |
You should add lot of more details:server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...
– Selaron
Nov 22 '18 at 12:37
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
FYI never post text as an image. A copy-paste is quite easy (and then use icon{}
in the editor to make it formatted as code).
– Nic3500
Nov 22 '18 at 13:59
You have both Apache httpd and Apache Tomcat. If you ask forhttp://SOMETHING
is will go to port 80.https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so:http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.
– Nic3500
Nov 22 '18 at 14:02
You should add lot of more details:
server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...– Selaron
Nov 22 '18 at 12:37
You should add lot of more details:
server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...– Selaron
Nov 22 '18 at 12:37
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
FYI never post text as an image. A copy-paste is quite easy (and then use icon
{}
in the editor to make it formatted as code).– Nic3500
Nov 22 '18 at 13:59
FYI never post text as an image. A copy-paste is quite easy (and then use icon
{}
in the editor to make it formatted as code).– Nic3500
Nov 22 '18 at 13:59
You have both Apache httpd and Apache Tomcat. If you ask for
http://SOMETHING
is will go to port 80. https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so: http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.– Nic3500
Nov 22 '18 at 14:02
You have both Apache httpd and Apache Tomcat. If you ask for
http://SOMETHING
is will go to port 80. https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so: http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.– Nic3500
Nov 22 '18 at 14:02
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431074%2fvirtual-hosting-in-tomcat-and-xampp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431074%2fvirtual-hosting-in-tomcat-and-xampp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should add lot of more details:
server.xml
, configuration of URL mapping, URL you input in the browser, exact error messages, ...– Selaron
Nov 22 '18 at 12:37
Error: HTTP Error 404. The requested resource is not found. URL is reaching to Xampp port 80/443 instead of tomcat port 9091/9093
– Rohit Buwa
Nov 22 '18 at 13:07
Request URL: myapp.com Request Method: GET Status Code: 404 Not Found Remote Address: .*.**.***:80 Referrer Policy: no-referrer-when-downgrade
– Rohit Buwa
Nov 22 '18 at 13:11
FYI never post text as an image. A copy-paste is quite easy (and then use icon
{}
in the editor to make it formatted as code).– Nic3500
Nov 22 '18 at 13:59
You have both Apache httpd and Apache Tomcat. If you ask for
http://SOMETHING
is will go to port 80.https://SOMETHING
goes to port 443. These are defaults. And Apache httpd will answer these requets. To talk directly to Tomcat, you have to force the port like so:http://SOMETHING:9091
. I guessed 9091 is http, 9093 is https, but you do not show this config.– Nic3500
Nov 22 '18 at 14:02