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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:34:06+00:00 2026-06-15T05:34:06+00:00

I am trying to give a Domain name and run multiple django projects on

  • 0

I am trying to give a Domain name and run multiple django projects on my apache, for the moment I managed to host one application and and run it on 127.0.0.1:8888 the settings look like this.

WSGIScriptAlias / C:/Users/ShabeerSheffa/workspace/ApacheDemo/ApacheDemo/wsgi.py
WSGIPythonPath C:/Users/ShabeerSheffa/workspace/ApacheDemo

<Directory C:/Users/ShabeerSheffa/workspace/ApacheDemo>
    <Files wsgi.py>
        Order deny,allow
        Allow from all
    </Files>
</Directory>

I tried changing the above code to look like the code below, with a domain name so i could access it using apachedemo.com but failed miserably.

NameVirtualHost apachedemo.com   

<VirtualHost apachedemo.com>    
    ServerName apachedemo.com  
    ServerAlias www.apachedemo.com

    WSGIScriptAlias / C:/Users/ShabeerSheffa/workspace/ApacheDemo/ApacheDemo/wsgi.py
    WSGIPythonPath C:/Users/ShabeerSheffa/workspace/ApacheDemo

    DocumentRoot C:/Users/ShabeerSheffa/workspace/ApacheDemo

    <Directory C:/Users/ShabeerSheffa/workspace/ApacheDemo>
        <Files wsgi.py>
            Order deny,allow
            Allow from all
        </Files>
    </Directory>    

</VirtualHost> 

I am currently using port 8888 for my apache on a windows 7 machine, 127.0.0.1:8888 worked for the first version of the code, but after editing the code apache gives an error when restarting apache.

This is how my host file looks like, i only added the last line.(not quite sure why there is a # in second and third line)

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
    127.0.0.1:8888       apachedemo.com       www.apachedemo.com

I am trying to find answers for two questions-

  1. How do i make apachedemo.com work
  2. How do i add another project on the same server, example apachedemo2.com

EDIT: I am developing my projects using eclipse

Thanks alot for the help guys

  • 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-15T05:34:08+00:00Added an answer on June 15, 2026 at 5:34 am

    Try the below configuration out. You might also find this question useful and in the mod wsgi docs there is a section on virtualhosts that might help you as well.

    WSGIPythonPath C:/Users/ShabeerSheffa/workspace/ApacheDemo
    
    <VirtualHost apachedemo.com:8888>
        ServerName apachedemo.com
        WSGIScriptAlias / C:/Users/ShabeerSheffa/workspace/ApacheDemo/ApacheDemo/wsgi.py
    
        <Directory C:/Users/ShabeerSheffa/workspace/ApacheDemo>
            <Files wsgi.py>
                Order deny,allow
                Allow from all
            </Files>
        </Directory>
    </VirtualHost>
    
    <VirtualHost apachedemo2.com:8888>
        ServerName apachedemo2.com
        WSGIScriptAlias / C:/Users/ShabeerSheffa/workspace/ApacheDemo/apachedemo2/wsgi.py
    
        <Directory C:/Users/ShabeerSheffa/workspace/ApacheDemo>
            <Files wsgi.py>
                Order deny,allow
                Allow from all
            </Files>
        </Directory>
    </VirtualHost>
    

    Update

    One of the comments below asked can you have different WSGIPythonPath in each virtualhost. Looking at the configuration docs WSGIPythonPath can only be in the context server config and not virtualhost. You can however add to the path in your wsgi files themselves as shown in this answer. You could also try and look at WSGIDaemonProcess with python-path as shown in this question.

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

Sidebar

Related Questions

I am trying to give sudo access to one of my users. What should
I am trying to host two websites using Apache from the same Ubuntu server.
I am trying to give a text input a drop-shadow & a inner shadow,
I'm trying to give functionality to the user where they can remotely control the
I've been trying to give more information to the provider about the error I'm
I am trying to give the effect of general headings in this table and
I'm trying to give my plugin callback functionality, and I'd like for it to
I am trying to give my form a view script decorator like so: public
I'm trying to give a custom background to my spinner. I've downloaded the HTC
I am trying to give float point into core-plot y axis value, it is

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.