Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7062295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:34:36+00:00 2026-05-28T04:34:36+00:00

I have two applications (PHP and .NET) working on the same machine but different

  • 0

I have two applications (PHP and .NET) working on the same machine but different servers (one on Apache and one on IIS). I also have SSL certificate used by PHP application. I would like my .NET app to work on the same domain name and use the same certificate.

How should I configure my servers?

I would appreciate any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:34:37+00:00Added an answer on May 28, 2026 at 4:34 am

    HTTPS only verifies the host name when checking a certificate (see RFC 2818 Section 3.1), not the port, so you shouldn’t have any problem using the same certificate for two different applications on the same host.

    You could have:

    • Apache Httpd on https://www.example.com/ (port 443, default)
    • IIS on https://www.example.com:8443/ (port 8443)

    Where it’s going to be a problem is if you want to use the same port for Apache Httpd and IIS. It’s not necessarily a good idea to have a different server running on a non-standard port for HTTPS: it may cause problems since some firewalls (and some proxy servers) will not let you connect to HTTPS on another port than 443 (or at least, port 8443 won’t be open).

    A solution to this is to use Apache Httpd as a front-end and forward a "section" of the request (e.g. eveything starting with https://www.example.com/iis/) to IIS in the back. This can be done using a reverse proxy (see mod_proxy_http in Apache Httpd). If your IIS server is on the same machine, the redirection can effectively go to localhost (on the port of your choice for IIS, maybe not the default 80). In this case, the connection between Apache Httpd and IIS don’t need to be secured with SSL/TLS, so you wouldn’t need to set up a certificate for IIS (you can if you really want to, but it’s not useful on localhost connections). All SSL/TLS connections from the users would end at Apache Httpd, which would then dispatch internally some request to IIS in the back.

    There might be more documentation generally available about this when putting Apache Tomcat (or a Java container) behind Apache Httpd, but the principles should be the same when replacing Tomcat with IIS.

    Here is some documentation about Apache Httpd with Jetty: http://wiki.eclipse.org/Jetty/Howto/Configure_mod_proxy#Configuring_Apache_mod_proxy_with_Jetty

    From Apache Httpd’s point of view using IIS instead of Jetty should be very similar. You may have to tweak the IIS configuration to make it pretend its incoming requests come over HTTPS (since they will come over plain HTTP), if some of your IIS apps are configured to require this.

    I think IIS also has reverse-proxy capabilities, so if this approach is too tricky, you should be able to reverse the roles. Look for using IIS as your HTTPS entry point and putting your Apache/PHP application in the back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two PHP applications on the same Apache server. At some point, application
Basically I have two applications: a PHP web application that runs over Apache and
I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same
I have two applications in my project 'test' the applications are one.mxml and two.mxml
If you have two applications residing on the same server, can you use Server.Transfer
This one has me stumped. I have two Windows installations of PHP: 32-bit on
I'm using System V Shared Memory to communicate between my two PHP applications. One
We are working on integrating two different applications that run simultaneously and share data.
i have two php applications in my local wamp server. both applications use the
I have two applications that need to talk to each other over HTTP. One

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.