Not getting response to 8000 port.

As per site, https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/modwsgi/
we have prepared the conf file as shown below:

#Listen 8000
<VirtualHost *:8000>
ServerAdmin webmaster@teloxis.com
ServerName django.thatisfun.in
ServerAlias wwww.django.thatisfun.in
DocumentRoot /usr/local/src/notes
ErrorLog {APACHE_LOG_DIR}/error.log CustomLog {APACHE_LOG_DIR}/access.log combined

Alias /static /usr/local/src/notes/notes_parser/static
<Directory /usr/local/src/notes/notes_parser/static>
	Require all granted
</Directory>

<Directory /usr/local/src/notes/notes_parser>
	<Files wsgi.py>
		Require all granted
	</Files>
</Directory>

WSGIDaemonProcess notes python-path=/home/notes_parser/env python-home=/usr/local/src/notes/notes_parser
WSGIProcessGroup notes
WSGIScriptAlias / /usr/local/src/notes/notes_parser/wsgi.py

After restarting the apache server, we are not getting a response to 8000 port.

Please let us know if any other parameters to be added or to be modified.

This looks like more of an Apache issue than a Django issue.

  • Can you verify that Apache has opened port 8000?
  • Do you have a firewall (ip-tables, UFW, etc) that is blocking that port?
  • You have the Listen 8000 line commented out - is it set in one of the other conf files?
  • Which file is this that you have edited? If it’s in the “sites-available” directory, has it been symlinked to your “sites-enabled” directory?
  • Is your Apache server listening to / responding to any other ports?
  • Are there any relevant messages in the log files?