-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhttpd.conf
More file actions
37 lines (29 loc) · 847 Bytes
/
httpd.conf
File metadata and controls
37 lines (29 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
IncludeOptional conf.modules.d/*.conf
Listen 8080
User apache
Group apache
<IfModule mime_module>
TypesConfig /etc/mime.types
</IfModule>
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
AddType text/css .css
WSGIPythonPath /var/www/django
ServerName localhost
<VirtualHost *:8080>
DocumentRoot /var/www/django/scalereg
WSGIScriptAlias / /var/www/django/scalereg/wsgi.py
<Directory /var/www/django/scalereg>
Require all granted
</Directory>
# Adjust as needed based on your Django settings
Alias /static/ /var/www/django/scalereg/static/
<Directory /var/www/django/scalereg/static>
Require all granted
</Directory>
Alias /media /var/www/django/static/media
<Directory /var/www/django/static/media>
Require all granted
</Directory>
</VirtualHost>