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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:44:32+00:00 2026-05-26T21:44:32+00:00

I have a Django applciation running on Apache with mod_wsgi, but I would like

  • 0

I have a Django applciation running on Apache with mod_wsgi, but I would like to create a development server on the same machine.

I can reach my website by http://IP_ADD and I would like to reach the development server from http://IP_ADD:8080 or another port.

But as you notice, I would like to prevent accessing to 8080 port from users who do not enter predetermined username/password.

How can I achive such protection? I may allow only certain IP address but it is not a solution.

Another question is also about the chosen port. I hace choice 8080 port but I will also setup issue tracking system, SVN etc. and I am not sure which ports should I open for them.

Thank you

  • 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-26T21:44:32+00:00Added an answer on May 26, 2026 at 9:44 pm

    For each of the sites you want to host, you could create a separate Apache site with a VirtualHost file along the following lines:

    <VirtualHost *:8080>
      ServerName www.example.com:8080    // Your name (if available)
      ServerAlias 12.23.34.45            // Your IP
      DocumentRoot /var/www/mydjangoapp  // Your folder
    
      <Directory />
        Order deny,allow
        Deny from all
        Allow from 127
        AuthName "Restricted area"
        AuthType Basic
        AuthUserFile /etc/apache2/users_mydjangoapp  // Allowed users file
        require valid-user
      </Directory>
    

    The userfile itself can be generated using Apache’s authentication system. For each site, you could add a seperate user file to contain the access for that part of your system. For IP based access, just add lines like Allow from 123.123.123.123 below the Allow from 127 line.

    Finally, additional sites can be created by creating more of these Apache sites (see for example here for more details). Just adapt the port (8080 in my example) to the one you want to host the additional sites under.

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

Sidebar

Related Questions

I have a django application hosted on a server running on Apache + Ubuntu.
I have a Django application running locally and I'd like to test the send_mail()
I have an application running on Django. I'd like to be able to authenticate/authorize
I would like to hold running threads in my Django application. Since I cannot
I have django running with wsgi and apache. I want to route some URLs
I have a Gunicorn server running a Django application which has a tendency to
I have a django application running under twisted. I have server.py with the following
I am using Apache 2.2.21 with mod_wsgi on a machine running arch linux. I
HI I have a django application running on app engine and I want to
Hello I need to have multiple language support of my django admin application.I can

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.