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

The Archive Base Latest Questions

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

I close debug mode, and I see a default 502 Error when I visit

  • 0

I close debug mode, and I see a default 502 Error when I visit a non-exsit page.

I have put 404.html, 403.html, 502.html in my project, but I still can’t see these pages, the project works all well except this part, what should i config about this problem ?

My configuration below:

server{
listen 80;
server_name 119.254.35.221;
location /{
uwsgi_pass 127.0.0.1:8000;
include uwsgi_params;
uwsgi_param UWSGI_SCRIPT www.wsgi;
uwsgi_param UWSGI_CHDIR /root/www;
uwsgi_param UWSGI_PYHOME /root/www;
uwsgi_param SCRIPT_NAME "";
}
}

The project tree:

[root@vps616 www]# pwd
/root/www
[root@vps616 www]# ll
total 1036
drwxr-xr-x 2 root root    4096 Sep 28 11:05 books
-rwxr-xr-x 1 root root     246 Sep 27 13:29 manage.py
-rw------- 1 root root    6228 Sep 28 09:56 nohup.out
-rwxr-xr-x 1 root root      41 Sep 27 23:54 restart.sh
-rwxr-xr-x 1 root root      53 Sep 28 16:51 start.sh
drwxr-xr-x 2 root root    4096 Sep 28 20:18 static
-rw-rw-rw- 1 root root     217 Sep 28 14:05 uwsgi.ini
-rw-r--r-- 1 root root     272 Sep 27 23:16 uwsgi.xml.backup
drwxr-xr-x 3 root root    4096 Sep 28 20:27 www
-rw-r----- 1 root root 1009290 Sep 28 20:25 www.log
-rw-rw-rw- 1 root root       6 Sep 28 16:48 www.pid
[root@vps616 www]# ll www
total 48
-rw-r--r-- 1 root root    0 Sep 28 20:27 403.html
-rw-r--r-- 1 root root    0 Sep 28 20:18 404.html
-rw-r--r-- 1 root root  227 Sep 28 17:01 forms.py
-rw-r--r-- 1 root root    0 Sep 27 13:29 __init__.py
-rw-r--r-- 1 root root  112 Sep 28 08:46 __init__.pyc
-rw-r--r-- 1 root root 5247 Sep 28 20:20 settings.py
-rw-r--r-- 1 root root 2924 Sep 28 20:20 settings.pyc
drwxr-xr-x 2 root root 4096 Sep 28 17:04 templates
-rw-r--r-- 1 root root  630 Sep 28 16:47 urls.py
-rw-r--r-- 1 root root  641 Sep 28 11:03 urls.pyc
-rw-r--r-- 1 root root  625 Sep 28 17:22 views.py
-rw-r--r-- 1 root root  871 Sep 28 11:03 views.pyc
-rw-r--r-- 1 root root 1126 Sep 28 12:32 wsgi.py
-rw-r--r-- 1 root root 1000 Sep 28 12:32 wsgi.pyc
[root@vps616 www]# 

The uwsgi config:

[root@vps616 www]# cat uwsgi.ini 
[uwsgi]  
uid = 500
listen=200
master = true  
profiler = true 
processes = 8 
logdate = true  
pidfile = /root/www/www.pid  
daemonize = /root/www/www.log  
enable-threads = true
memory-report = true
limit-as = 6048

start command:

uwsgi --ini uwsgi.ini -s 127.0.0.1:8000

thanks a lot.

  • 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:57:38+00:00Added an answer on June 11, 2026 at 11:57 pm

    Try moving the 404.html, etc… files inside your template directory (where you have your base_site.html if you have)

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

Sidebar

Related Questions

I have a WPF application running in debug mode, and I would like to
I get an access violation error in release mode, but not debug mode. The
I have following message while I am in debug mode in Visual studio 2010
I use Log functions to debug my Android app. I'm close to releasing my
Just for fun, how close can we get to debug an application in C#
I want to auto close the compile buffer when there is no error and
On the Emulator with a default mail-app all works fine. But I have no
I have some file writing code that works as expected, but prints an error
When I run my Visual Studio Windows Forms application by clicking F5 (debug mode),
Im having a problem installing my service application. When I'm running my debug mode

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.