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

  • Home
  • SEARCH
  • 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 6178533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:28:22+00:00 2026-05-24T00:28:22+00:00

Under the same subdomain, I need to set up several independent sites each running

  • 0

Under the same subdomain, I need to set up several independent sites each running django, these sites are totally separate. Each site should be in its own subdirectory, and these subdirectories have to be password-protected.

for example:

subdomain.example.com/site1
subdomain.example.com/site2


I am using apache2 and have a virtual server entry for the subdomain. django is run using FastCGI.

basically, I do not know how to set this up. What do I put in to my <VirtualHost> entry for the subdomain? Usually, for a single django site under a subdomain I would put WSGIScriptAlias pointing to the python script that should be executed, but what do i do for multiple sites?
please help
thanks
konstantin

  • 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-24T00:28:23+00:00Added an answer on May 24, 2026 at 12:28 am

    here is my configuration:

    <VirtualHost *:12665>
        ServerName subdomain.example.com
        DocumentRoot /path
        WSGIScriptAliasMatch ^/([^/]+) /sites/$1/httpd/django.wsgi
        <DirectoryMatch ^/sites/[^/]+/httpd>
            Order deny,allow
            Allow from all
        </DirectoryMatch>
    </VirtualHost>
    

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

Sidebar

Related Questions

I understand that applications under the same domain name can talk to each other
If i had two different application running under the same solution but using different
I have 3 Plone 4.1.4 sites under the same zope instance with the same
These are the scripts under same application first one is under application and second
I currently need to have 2 subdomains under the same domain under SSL. Both
I have two UIPickerViews set up on one view under the same view controller.
I have the following situation: multiple virtual directories under same application pool in IIS
I would like to have different applications under the same domain using Heroku. Because
I'm trying to make two Kinects getting along under the same application. I've tried
I have two or more tables which hold values under the same column name.

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.