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 7549843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:03:28+00:00 2026-05-30T10:03:28+00:00

The setup is : Two applications are hosted on same linux server using vhost

  • 0

The setup is :
Two applications are hosted on same linux server using vhost entries in apache configuration. say :

http://greatapp.example.com

and

http://superapp.example.com

Both of them have a functionality where they do server side http request to a third url (using php cURL / file_get_contents) :

http://apis.example.com

Now there is a host entry of an in the hosts file ‘/etc/hosts’

xx.xx.xx.xx       apis.example.com

This is only intended for greatapp.example.com code, and not for superapp.example.com.

How to configure the server such that greatapps.example.com uses the host entry,
but superapp.example.com uses the public ip of apis.example.com

  • 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-30T10:03:30+00:00Added an answer on May 30, 2026 at 10:03 am

    It cannot be done directly: host name space is global per host.

    You could run one of the apaches in a virtual machine with a different /etc/hosts file.

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

Sidebar

Related Questions

I have two issues both related to (I believe) my SQL Server setup. I
I am trying to share sessions between two web applications, both hosted on the
I have two identical applications setup on IIS on different virtual directories (I have
Are there any issues if two web applications is pointing to the same jndi
I have two applications setup in IIS7.5. MVC 3 is installed. One application serves
I am using CodeIgniter for two applications (a public and an admin app). The
I wanted to set up a simple data communication between two C# applications, and
In our setup there are two different websites in IIS 7 setup that point
I am looking to setup a transition between two levels(after one level is complete,
I'm trying to setup a bidirectional localConnection (LC) between two flash objects on the

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.