Virtual Hosting in Tomcat and Xampp












0















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



enter image description here










share|improve this question

























  • 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
















0















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



enter image description here










share|improve this question

























  • 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














0












0








0








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



enter image description here










share|improve this question
















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



enter image description here







apache tomcat xampp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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 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

















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












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
});


}
});














draft saved

draft discarded


















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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'