Pages

Labels

R (14) Admin (11) programming (10) Rant (6) personal (5) parallelism (3) spectrum (3) HPC (2) Modeling (2) Rcpp (2) SQL (2) amazon (2) code (2) email (2) frequency (2) git (2) plotting (2) postgresql (2) rstudio (2) school (2) C++ (1) DNS (1) Egypt (1) Flying Cars (1) Future (1) Internet (1) LVM (1) Mubarak (1) Music (1) Obama (1) Politics (1) Python (1) RAID (1) Reproducible Research (1) Science (1) Teaching (1) animation (1) apache (1) aws (1) cloud (1) data (1) ebay shame phone nyt (1) ec2 (1) economics (1) eff (1) encryption (1) example (1) graphing (1) hardware (1) https (1) knitr (1) knoxville xmas08 mobile pic (1) link (1) linux (1) math (1) performance (1) pki (1) plyr (1) security (1) ssh (1) syntax (1) tech audio (1) ubuntu (1) useR (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>