-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c11fa3
commit 4ff1e74
Showing
2 changed files
with
40 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
<VirtualHost *:80> | ||
# ProxyPreserveHost On | ||
# Servers to proxy the connection, or; | ||
# List of application servers: | ||
# Usage: | ||
# ProxyPass / http://[IP Addr.]:[port]/ | ||
# ProxyPassReverse / http://[IP Addr.]:[port]/ | ||
# Example: | ||
ProxyPass / http://127.0.0.1:8000/ | ||
ProxyPassReverse / http://127.0.0.1:8000/ | ||
# ProxyPass / http://127.0.0.1:8000/ | ||
# ProxyPassReverse / http://127.0.0.1:8000/ | ||
ServerName portfolio-backend.sdslabs.co | ||
Alias /static /home/portfolio/portfolio/staticfiles | ||
<Directory /home/portfolio/portfolio/staticfiles> | ||
Require all granted | ||
</Directory> | ||
|
||
Alias /media/projects /home/portfolio/portfolio/media/projects | ||
<Directory /home/portfolio/portfolio/media/projects> | ||
Require all granted | ||
</Directory> | ||
|
||
Alias /media/news /home/portfolio/portfolio/media/news | ||
<Directory /home/portfolio/portfolio/media/news> | ||
Require all granted | ||
</Directory> | ||
|
||
<Directory /home/portfolio/portfolio/portfolio> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
|
||
WSGIDaemonProcess portfolio python-path=/home/portfolio/portfolio python-home=/home/portfolio/portfolio/venv | ||
WSGIProcessGroup portfolio | ||
WSGIScriptAlias / /home/portfolio/portfolio/portfolio/wsgi.py | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters