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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:03:41+00:00 2026-06-15T09:03:41+00:00

I just install apache and django. The django default page works fine: It works!

  • 0

I just install apache and django.

The django default page works fine:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

but the /admin/ site not:

Not Found

The requested URL /admin/ was not found on this server.

Apache/2.2.17 (Ubuntu) Server at 69.162.92.53 Port 80

Apache conf (/etc/init.d/apache2/sites-avaliable/mysite.conf) file:

<VirtualHost *:80>
WSGIScriptAlias / /var/www/mysite/mysite/wsgi.py

ServerName mysite.com.br
Alias /static /var/www/mysite/media/static/

<Directory /var/www/mysite/mysite>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

wsgi file (/var/www/mysite/mysite/wsgi.py):

import os
import sys

sys.path.insert(0, '/var/www/mysite')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Django mysite.settings (/var/www/mysite/mysite/settings.py):

...
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
)
...

Django mysite.urls (/var/www/mysite/mysite/urls.py):

from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'mysite.views.home', name='home'),
    # url(r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

That’s all. am I missing something?

Thanks!

  • 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-15T09:03:42+00:00Added an answer on June 15, 2026 at 9:03 am

    This is an apache configuration error.

    I believe you should be pointing at:-

    <Directory /var/www/mysite>
        Order allow,deny
        Allow from all
    </Directory>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just did a fresh install of Apache server 2.2. Everything works. When I
I'm running EasyPHP on Windows. The default install just opens port 80 on the
I just install apache,php and mysql rpm on AIX5.2, but I can't see the
I've got a ClickOnce application deployed that many machines can install just fine -
I just installed django-stdimage with easy_install on my server. It told it me installed
I just learned to install Apache 2 on my ubuntu linux localhost for the
i am running a vps with apache. just installed nginx. got the address already
Ok this is probably just me not knowing enough about php but here it
Like with XAMPP you can just install it and start developing because PHP/MySQL/Apache, etc.
I have just moved a silverstripe install to a new joyent smartos server. Not

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.