I attempted to follow the instructions at How to configure Apache to act as an SSL proxy to an application server?, but I'm still getting some odd errors. I'm not familiar with configuring SSL, and am largely doing this project out of necessity.
The following setup works, but not as intended. While traffic to domain.com/rstudio is redirected to https://www.domain.com/rstudio, unfortunately we also have another *.80 virtualhost for domain2.edu. We don't have a certificate yet, so if anyone accidentally types in
https://domain2.edu, they see the directory contents.
# RStudio Server Proxy Setup <VirtualHost *:80> ServerName domain.com ServerAdmin email@example.com #Redirect permanent ^/rstudio$ https://domain.com/rstudio/ Redirect permanent /rstudio https://domain.com/rstudio/ SetOutputFilter DEFLATE </VirtualHost> <VirtualHost *:80> ServerName test.domain2.edu ServerAdmin firstname.lastname@example.org DocumentRoot "/var/www/html/personalitytheory/test" ServerAlias test.domain2.edu SetOutputFilter DEFLATE </VirtualHost> <VirtualHost domain2.edu:443> ProxyPreserveHost On ProxyVia On <Proxy *> Order deny,allow Allow from all </Proxy> <Location /rstudio> ProxyPass http://localhost:8787/ ProxyPassReverse http://localhost:8787/ </Location> ServerName domain2.edu:443 <Files ~ "\.(cgi|shtml|phtml|php3?)$"> SSLOptions +StdEnvVars </Files> <Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars </Directory> </VirtualHost>
If I change the configuration according to the previous ServerFault post, I get this
// not found when the page is rendered. Thank you in advance for any insights.