✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Dash app on windows apache server

Hi,

I am trying to deploy dash application on windows server 2016. I installed apache and my configuration is as below:

----------httpd.conf:-----------------
Listen 5000

added below lines
LoadFile “c:/python38/python38.dll”
LoadModule wsgi_module “c:/python38/lib/site-packages/mod_wsgi/server/mod_wsgi.cp38-win_amd64.pyd”
WSGIPythonHome “c:/python38”

-----------------httpd-vhosts.conf------------------------
<VirtualHost *:5000>
ServerAdmin ganesh
ServerName localhost:5000
WSGIScriptAlias / “C:/WORK/MyREPO/python/Dash/Hackathon/index/web.wsgi”
DocumentRoot “C:/WORK/MyREPO/python/Dash/Hackathon”
<Directory “C:/WORK/MyREPO/python/Dash/Hackathon/index”>
Require all granted

ErrorLog “C:/WORK/MyREPO/python/Dash/Hackathon/logs/error.log”
CustomLog “C:/WORK/MyREPO/python/Dash/Hackathon/logs/access.log” common

hack.py:
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objects as go
from dash.dependencies import Input, Output
import dash_table as table

external_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]

app = dash.Dash(name, external_stylesheets=external_stylesheets, sharing=True, )
server=app.server


if name == ‘main’:
app.run_server(debug=True, port=5000, host=‘0.0.0.0’)

-------------------------------web.wsgi------------------------------
import sys

sys.path.insert(0, ‘C:/WORK/MyREPO/python/Dash/Hackathon’)

from hack import server
application=server

Please i entered http://localhost:5000, it keeps running without showing anything or any error. Please anybody suggest what could be issue.

Thanks and Regards
Ganesh