· 5 years ago · Feb 28, 2020, 04:08 PM
1>httpd.exe -V
2Server version: Apache/2.4.41 (Win64)
3Apache Lounge VS16 Server built: Aug 9 2019 16:46:32
4Server's Module Magic Number: 20120211:88
5Server loaded: APR 1.7.0, APR-UTIL 1.6.1
6Compiled using: APR 1.7.0, APR-UTIL 1.6.1
7Architecture: 64-bit
8Server MPM: WinNT
9 threaded: yes (fixed thread count)
10 forked: no
11Server compiled with....
12 -D APR_HAS_SENDFILE
13 -D APR_HAS_MMAP
14 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
15 -D APR_HAS_OTHER_CHILD
16 -D AP_HAVE_RELIABLE_PIPED_LOGS
17 -D DYNAMIC_MODULE_LIMIT=256
18 -D HTTPD_ROOT="/apache"
19 -D SUEXEC_BIN="/apache/bin/suexec"
20 -D DEFAULT_PIDLOG="logs/httpd.pid"
21 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
22 -D DEFAULT_ERRORLOG="logs/error.log"
23 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
24 -D SERVER_CONFIG_FILE="conf/httpd.conf"
25
26############################
27>httpd.exe -M
28Loaded Modules:
29 core_module (static)
30 win32_module (static)
31 mpm_winnt_module (static)
32 http_module (static)
33 so_module (static)
34 actions_module (shared)
35 alias_module (shared)
36 allowmethods_module (shared)
37 asis_module (shared)
38 auth_basic_module (shared)
39 authn_core_module (shared)
40 authn_file_module (shared)
41 authz_core_module (shared)
42 authz_groupfile_module (shared)
43 authz_host_module (shared)
44 authz_user_module (shared)
45 autoindex_module (shared)
46 cgi_module (shared)
47 dir_module (shared)
48 env_module (shared)
49 include_module (shared)
50 isapi_module (shared)
51 log_config_module (shared)
52 mime_module (shared)
53 negotiation_module (shared)
54 setenvif_module (shared)
55 wsgi_module (shared)
56
57
58############################
59>(venv) python -V
60Python 3.7.0
61
62############################
63(venv) python.exe .\manage.py shell
64Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
65(InteractiveConsole)
66>>> import django
67>>> django.VERSION
68(3, 0, 3, 'final', 0)
69>>>
70
71############################
72httpd-vhost.conf
73WSGIPythonPath "C:\Apache24\htdocs\rurp_consent\venv\Lib\site-packages;C:\Apache24\htdocs\rurp_consent\src\rurp_consent"
74WSGIPythonHome "c:/Python"
75
76
77<VirtualHost *:8000>
78 ServerName risotto.win.ad.jhu.edu
79 ServerAdmin wkelly19@jhmedu
80 WSGIScriptAlias / "C:\Apache24\htdocs\rurp_consent\src\rurp_consent\rurp_consent\wsgi.py"
81
82 DocumentRoot C:\Apache24\htdocs\rurp_consent\src\rurp_consent
83 Alias /static/ C:\Apache24\htdocs\rurp_consent\src\rurp_consent\static\
84
85 <Directory C:\Apache24\htdocs\rurp_consent\src\rurp_consent\static>
86 Require all granted
87 </Directory>
88
89
90 <Directory C:\Apache24\htdocs\rurp_consent\src\rurp_consent\rurp_consent\>
91 <Files wsgi.py> Order deny,allow
92 Require all granted
93 </Files>
94 </Directory>
95</VirtualHost>
96
97
98
99#######################
100SETTINGS.py (redacted)
101import os
102
103BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
104
105SECRET_KEY = "******************************************"
106
107DEBUG = True
108ALLOWED_HOSTS = ['********', 'localhost', '127.0.0.1']
109
110# Application definition
111INSTALLED_APPS = [
112 "django.contrib.admin",
113 "django.contrib.auth",
114 "django.contrib.contenttypes",
115 "django.contrib.sessions",
116 "django.contrib.messages",
117 "django.contrib.staticfiles",
118 "testwgsi",
119 "django_filters",
120 "base_objects",
121 'django_tables2',
122 "cohort_admin",
123 'bootstrap4',
124 'import_export',
125
126]
127
128MIDDLEWARE = [
129 "django.middleware.security.SecurityMiddleware",
130 "django.contrib.sessions.middleware.SessionMiddleware",
131 "django.middleware.common.CommonMiddleware",
132 "django.middleware.csrf.CsrfViewMiddleware",
133 "django.contrib.auth.middleware.AuthenticationMiddleware",
134 "django.contrib.messages.middleware.MessageMiddleware",
135 "django.middleware.clickjacking.XFrameOptionsMiddleware",
136 "django_require_login.middleware.LoginRequiredMiddleware",
137]
138
139ROOT_URLCONF = "rurp_consent.urls"
140
141TEMPLATES = [
142 {
143 "BACKEND": "django.template.backends.django.DjangoTemplates",
144 "DIRS": [os.path.join(BASE_DIR, "templates"),],
145 "APP_DIRS": True,
146 "OPTIONS": {
147 "context_processors": [
148 "django.template.context_processors.debug",
149 "django.template.context_processors.request",
150 "django.contrib.auth.context_processors.auth",
151 "django.contrib.messages.context_processors.messages",
152 "cohort_admin.context_processors.nav_processor",
153 ],
154 },
155 },
156]
157
158WSGI_APPLICATION = "rurp_consent.wsgi.application"
159
160DATABASES = {
161 'default': {
162 'ENGINE': 'sql_server.pyodbc',
163 'HOST': '127.0.0.1',
164 'USER': '********',
165 'PASSWORD': '***********',
166 'NAME': '*********',
167 'PORT':'1433',
168 'OPTIONS': {
169 'driver' : 'ODBC Driver 17 for SQL Server',
170 }
171 }
172}
173
174AUTH_PASSWORD_VALIDATORS = [
175 {"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",},
176 {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",},
177 {"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",},
178 {"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",},
179]
180
181
182LANGUAGE_CODE = "en-us"
183TIME_ZONE = "UTC"
184USE_I18N = True
185USE_L10N = True
186USE_TZ = False
187
188
189STATIC_URL = "/static/"
190STATICFILES_DIRS = [
191 os.path.join(BASE_DIR, "static"),
192]
193
194STATIC_ROOT = os.path.join(BASE_DIR, "static")
195
196
197MEDIA_URL = "/media/"
198MEDIA_ROOT = os.path.join(BASE_DIR, "media")
199
200REQUIRE_LOGIN_PUBLIC_NAMED_URLS = ('login', 'logout')
201
202RESOURCE_ROOT = os.path.join( BASE_DIR, 'cohort_admin', 'resources')