-
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
3c0b630
commit 8707638
Showing
3 changed files
with
40 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<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/ | ||
ServerName portfolio-backend.sdslabs.co | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<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:8080/ | ||
ProxyPassReverse / http://127.0.0.1:8080/ | ||
ServerName portfolio-beta.sdslabs.co | ||
DocumentRoot /home/d3mon/Projects/portfolio/frontend/src | ||
<Directory /home/d3mon/Projects/portfolio/frontend/src> | ||
Options -Indexes -MultiViews | ||
Allowoverride all | ||
Require all granted | ||
RewriteEngine On | ||
RewriteCond %{REQUEST_FILENAME} -f [OR] | ||
RewriteCond %{REQUEST_FILENAME} -d | ||
RewriteRule ^(.*)$ - [QSA,L] | ||
RewriteRule ^api/(.*)$ http://localhost:8000/api/$1 [END] | ||
RewriteRule ^(.*)$ http://localhost:8080/$1 [P] | ||
</Directory> | ||
ErrorLog ${APACHE_LOG_DIR}/portfolio.error.log | ||
LogLevel warn | ||
CustomLog ${APACHE_LOG_DIR}/portfolio.access.log combined | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
|
||
CORS_ORIGIN_ALLOW_ALL = DEBUG | ||
|
||
ALLOWED_HOSTS = [] | ||
ALLOWED_HOSTS = ["*"] | ||
|
||
|
||
# Application definition | ||
|