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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:48:16+00:00 2026-06-11T23:48:16+00:00

I have the same code which will be used for several sites. In the

  • 0

I have the same code which will be used for several sites. In the Nginx config I wanted to have all the sites point to the same code folder.

I think this should work. The only catch is that I want each site to use a different config file.

How could something like this be achieved? Surely I wouldn’t need to duplicate all the websites code just to have each one have a different config?

  • 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-06-11T23:48:17+00:00Added an answer on June 11, 2026 at 11:48 pm

    What language are you scripting in? Most languages will have a way to examine the incoming request. From this you could extract the domain name from the request and base which conf file you load based on the name using an if or switch statement.

    You could also use a get variable for example http://www.domain.com/index.html?conf=conf1.conf. Then in your controller you’d need to look at that git variable to determine which conf file to load.

    Either of these solutions should be easy to find in the docs for you scripting language.

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

Sidebar

Related Questions

I have 2 websites, both with the same code which display a Jquery speedometer.
There are 5 websites in ASP.NET 2.0 which have the same code and database
I have WPF Form which has many buttons with the same code. Appearance of
I have jquery validation code which is working fine in ff but the same
I have a multithreaded Java code in which: several threads read stateful objects from
Trying to send a complex type between two systems that have the same code
I have the same block of code repeated with two different variables. This block
I have different urls that points to the same code www.url1.com www.url2.com I need
I have a Full and Lite applications that were built from the same code.
I am using JQGrid I have it on 2 domains (same code)... On domain

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.