Labels

R (15) Admin (12) programming (11) Rant (6) personal (6) parallelism (4) HPC (3) git (3) linux (3) rstudio (3) spectrum (3) C++ (2) Modeling (2) Rcpp (2) SQL (2) amazon (2) cloud (2) frequency (2) math (2) performance (2) plotting (2) postgresql (2) DNS (1) Egypt (1) Future (1) Knoxville (1) LVM (1) Music (1) Politics (1) Python (1) RAID (1) Reproducible Research (1) animation (1) audio (1) aws (1) data (1) economics (1) graphing (1) hardware (1)

Apache2 Config for SSL

I used this tool to escape the script for html rendering.

<virtualhost *:443>
        ## Mostly default values -- see below for EDITS
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    ## EDITS   
    ## Proxy server for Rstudio server -- see http://rstudio.org/docs/server/running_with_proxy for details
   <proxy *>
     Allow from localhost
   </Proxy>
   ProxyPass        / http://localhost:8787/
   ProxyPassReverse / http://localhost:8787/

  ## EDITS for SSL -- see http://beeznest.wordpress.com/2008/04/25/how-to-configure-https-on-apache-2/ for details
  SSLEngine On
  SSLCertificateFile /usr/share/ca-certificates/crocus.crt
  SSLCertificateKeyFile /etc/ssl/private/crocus.key
  <location />
    SSLRequireSSL On
    SSLVerifyClient optional
    SSLVerifyDepth 1
    SSLOptions +StdEnvVars +StrictRequire
  </Location>
</VirtualHost>