Some of the information here may be outdated, please check the book instead
[edit]

Here is a sample apache config file:

NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
   <Location "/admin">
     SSLRequireSSL
   </Location>
   <Location "/examples">
     Order deny,allow
     Allow from all
     ProxyPass http://127.0.0.1:8000/examples
     ProxyPassReverse http://127.0.0.1:8000/
   </Location>
   <Location "/">
     Order deny,allow
     Allow from all
     ProxyPass http://127.0.0.1:8000/examples/default/index
     ProxyPassReverse http://127.0.0.1:8000/
   </Location>
   LogFormat "%h %l %u %t \"%r\" %>s %b" common
   CustomLog /var/log/apache2/access.log common
</VirtualHost>

<VirtualHost *:443>
  SSLEngine On
  SSLCertificateFile /etc/apache2/ssl/server.crt
  SSLCertificateKeyFile /etc/apache2/ssl/server.key
  <Location "/">
     Order deny,allow
     Allow from all
     ProxyPass http://127.0.0.1:8000/
     ProxyPassReverse http://127.0.0.1:8000/
  </Location>
  LogFormat "%h %l %u %t \"%r\" %>s %b" common
  CustomLog /var/log/apache2/access.log common
</VirtualHost>
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.