Apache Configuration

From Code-cat Knowledge Base

“Mothership cat is not amused.”

- Code-cat

Jump to: navigation, search

Parent

mod_proxy

  • Quick Example
ProxyRequests Off

ProxyPass /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar

Virtual Hosts

  • Quick Name Based Virtual Host Example
NameVirtualHost *

<VirtualHost *>
    ServerAdmin root@localhost
    DocumentRoot "/path/to/my/html"
    <Directory "/path/to/my/html">
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Allow from all
    </Directory>
    ServerName www.code-cat.com
    ErrorLog www.code-cat.com-access_log
</VirtualHost>

<VirtualHost *>
    ServerAdmin root@localhost
    DocumentRoot "/path/to/my/wiki"
    <Directory "/path/to/my/wiki">
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Allow from all
    </Directory>
    ServerName wiki.code-cat.com
    ErrorLog wiki.code-cat.com-access_log
</VirtualHost>

Links & Sources

Personal tools