Dashboard > Server Administration > ... > Initial Configuration > 8 Apache
  Server Administration Log In   View a printable version of the current page.  
  8 Apache
Added by Larry Talley, last edited by Larry Talley on Feb 11, 2006  (view change)
Labels: 
(None)

Apache allows us more control over our URLs (vanity URLs) and probably improved security.

Resources http://httpd.apache.org/docs/2.0/
http://facsrv.cs.depaul.edu/~mconneen/howto/setupTomcat.html
http://mail-archive.objectweb.org/ops-users/2005-12/msg00345.html
http://httpd.apache.org/docs/2.0/misc/security_tips.html

  1. Packages
    apt-get install apache2
    
  2. Configuration
    a2enmode proxy
    vi /etc/apache2/sites-available/toklas.org
    
    NameVirtualHost *:80
    
    <VirtualHost *:80>
      ServerName toklas.org
    
      ProxyRequests Off
      ProxyPreserveHost On
    
      LogLevel debug
      LogFormat "%v %l %u %t \"%r\" %>s %b" combined
      CustomLog /var/log/apache2/access.toklas.org.log combined
    
      ProxyPass          /             http://localhost:8080/
      ProxyPassReverse   /             http://localhost:8080/
    
      <Proxy *>
        Order Deny,Allow
        allow from all
      </Proxy>
    </VirtualHost>
    
    a2ensite toklas.org
    /etc/init.d/apache2 reload
    
  3. automate apache startup
    ln -s /etc/init.d/httpd /etc/rc3.d/S85httpd
    ln -s /etc/init.d/httpd /etc/rc5.d/S85httpd
    

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.2 Build:#807 May 20, 2007) - Bug/feature request - Contact Administrators