Hello,
I try to make a shinyproxy serveur with apache2 on top of the serveur. I have the certificate and linked with the apache2 without problem. But when I try to link apache2 to shinyproxy with the certificate, it doesn’t work at all.
This is the configuration file for apache2:
<VirtualHost *:443>
ServerName shinyapp.fr
ServerAlias shinyapp.fr
DocumentRoot /path/to/doc
# SSL configuration
SSLEngine on
SSLCertificateKeyFile /path/ca.key
SSLCertificateFile /path/ca.cer
SSLCertificateChainFile /path/ca.combine.cer
LogLevel info rewrite:info proxy:info
RedirectMatch "^/$" "/intro/"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPreserveHost On
Redirect permanent ^/shinyapp$ /shinyapp/
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket
RewriteRule "^/shinyapp/(.*)$" "ws://localhost:8080/app/shinyapp/$1" [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule "^/shinyapp/(.*)$" "http://localhost:8080/app/shinyapp/$1" [P,L]
ProxyPass "/shinyapp/" "http://localhost:8080/app/shinyapp/"
ProxyPassReverse "/shinyapp/" "http://localhost:8080/app/shinyapp/"
ProxyRequests Off
</VirtualHost>
This is the error I have inside the error.log of apache2 :
[Wed Feb 03 14:21:05.623551 2021] [ssl:info] [pid 1641:tid 140225967806208] [client 147.100.227.1:58180] AH01964: Connection to child 18 established (server shinyapp.fr:443)
[Wed Feb 03 14:21:05.807592 2021] [core:info] [pid 1641:tid 140225959413504] [client 147.100.227.1:58180] AH00128: File does not exist: /path/to/doc/shinyapp/webjars/bootstrap/3.4.1/css/bootstrap.min.css, referer: https://shinyapp.fr/shinyapp/
[Wed Feb 03 14:21:05.857623 2021] [core:info] [pid 1641:tid 140225951020800] [client 147.100.227.1:58180] AH00128: File does not exist: /path/to/doc/shinyapp/css/default.css, referer: https://shinyapp.fr/shinyapp/
[Wed Feb 03 14:21:05.865900 2021] [ssl:info] [pid 1641:tid 140225942628096] [client 147.100.227.1:58181] AH01964: Connection to child 21 established (server shinyapp.fr:443)
[Wed Feb 03 14:21:05.871885 2021] [ssl:info] [pid 1642:tid 140226604627712] [client 147.100.227.1:58182] AH01964: Connection to child 65 established (server shinyapp.fr:443)
[Wed Feb 03 14:21:05.876902 2021] [ssl:info] [pid 1642:tid 140226387244800] [client 147.100.227.1:58183] AH01964: Connection to child 66 established (server shinyapp.fr:443)
[Wed Feb 03 14:21:05.917759 2021] [core:info] [pid 1641:tid 140225942628096] [client 147.100.227.1:58181] AH00128: File does not exist: /path/to/doc/shinyapp/webjars/bootstrap/3.4.1/js/bootstrap.min.js, referer: https://shinyapp.fr/shinyapp/
[Wed Feb 03 14:21:05.929531 2021] [core:info] [pid 1642:tid 140226604627712] [client 147.100.227.1:58182] AH00128: File does not exist: /path/to/doc/shinyapp/webjars/jquery/3.5.0/jquery.min.js, referer: https://shinyapp.fr/shinyapp/
[Wed Feb 03 14:21:05.989941 2021] [core:info] [pid 1641:tid 140225934235392] [client 147.100.227.1:58180] AH00128: File does not exist: /path/to/doc/shinyapp/webjars/bootstrap/3.4.1/js/bootstrap.min.js, referer: https://shinyapp.fr/shinyapp/
[Wed Feb 03 14:21:06.057478 2021] [core:info] [pid 1641:tid 140225170892544] [client 147.100.227.1:58180] AH00128: File does not exist: /path/to/doc/shinyapp/favicon.ico, referer: https://shinyapp.fr/shinyapp/
On the page http://shinyapp.fr/shinyapp/ , I have just this message “Launching shinyapp…” without the animation, and it don’t launch.
But when I modified the url to http://shinyapp.fr:8080/app/shinyapp/ it work (on the shinyproxy) but i am not in https (well I think).
Any idea what the problem could be?
Regards,
Arthur