API UPDATE FIRST
This commit is contained in:
46
serverConf/bk_default-ssl.conf
Normal file
46
serverConf/bk_default-ssl.conf
Normal file
@@ -0,0 +1,46 @@
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost _default_:443>
|
||||
ServerAdmin webmaster@localhost
|
||||
ServerName 192.168.28.32
|
||||
|
||||
DocumentRoot /home/turingvideo/dist/localApp
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
ProxyPass /api/ "http://127.0.0.1:8000/api/"
|
||||
ProxyPassReverse /api/ "http://127.0.0.1:8000/api/"
|
||||
|
||||
ProxyPass /ws/ "ws://127.0.0.1:8080/ws/" upgrade=websocket
|
||||
ProxyPassReverse /ws/ "ws://127.0.0.1:8080/ws/"
|
||||
|
||||
# ProxyPass /media/ "http://127.0.0.1:8000/media/"
|
||||
# ProxyPassReverse /media/ "http://127.0.0.1:8000/media/"
|
||||
|
||||
<Directory /home/turingvideo/dist/localApp>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^ - [L]
|
||||
RewriteRule ^ index.html [L]
|
||||
</Directory>
|
||||
|
||||
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||
SSLOptions +StdEnvVars
|
||||
</FilesMatch>
|
||||
<Directory /usr/lib/cgi-bin>
|
||||
SSLOptions +StdEnvVars
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user