# Apache proxy configuration # code: gmosx, drak, elathan, ekarak # gmosx: FIXME (optimize this!) LoadModule access_module /usr/lib/httpd/modules/mod_access.so LoadModule log_config_module /usr/lib/httpd/modules/mod_log_config.so LoadModule mime_magic_module /usr/lib/httpd/modules/mod_mime_magic.so LoadModule expires_module /usr/lib/httpd/modules/mod_expires.so LoadModule headers_module /usr/lib/httpd/modules/mod_headers.so LoadModule mime_module /usr/lib/httpd/modules/mod_mime.so LoadModule status_module /usr/lib/httpd/modules/mod_status.so LoadModule autoindex_module /usr/lib/httpd/modules/mod_autoindex.so LoadModule vhost_alias_module /usr/lib/httpd/modules/mod_vhost_alias.so LoadModule dir_module /usr/lib/httpd/modules/mod_dir.so LoadModule alias_module /usr/lib/httpd/modules/mod_alias.so LoadModule rewrite_module /usr/lib/httpd/modules/mod_rewrite.so LoadModule proxy_module /usr/lib/httpd/modules/mod_proxy.so LoadModule proxy_http_module /usr/lib/httpd/modules/mod_proxy_http.so LoadModule proxy_connect_module /usr/lib/httpd/modules/mod_proxy_connect.so LoadModule cgi_module /usr/lib/httpd/modules/mod_cgi.so Listen 8080 User navel Group users PidFile /tmp/tiny-apache.pid ErrorLog logs/apache.log LogLevel warn # used for debuging LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog logs/access_log common Timeout 300 # Keepalive KeepAlive On MaxKeepAliveRequests 64 KeepAliveTimeout 5 ServerTokens Off ServerSignature Off ExtendedStatus Off UseCanonicalName Off HostnameLookups Off #DirectoryIndex index.sx TypesConfig /etc/mime.types DefaultType text/plain MIMEMagicFile /etc/httpd/conf/magic IndexOptions None AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddType application/x-tar .tgz AddType image/x-icon .ico AddType text/css .css # gmosx: needed! fixes a bug! AddLanguage en .en AddLanguage el .el AddDefaultCharset ISO-8859-7 AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk AddCharset UTF-8 .utf8 # enable expirations ExpiresActive On # expire GIF images after a month in the client's cache ExpiresByType image/gif A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/bmp A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript A2592000 # prefork MPM StartServers 5 MinSpareServers 1 MaxSpareServers 7 MaxClients 50 MaxRequestsPerChild 10000 DocumentRoot "/navel/nitro/examples/tiny/root" RewriteEngine on RewriteRule ^/(.*[sr][bix])$ http://127.0.0.1:9090/$1 [P] RewriteRule ^(.*)/$ http://127.0.0.1:9090$1/index.sx [P] RewriteRule ^/([^\.]*)$ http://127.0.0.1:9090/$1/index.sx [P]