# domain: mydomain2.net
# public: /home/super/public_html/mydomain2.net/current/public
# Admin email, Server Name (domain name) and any aliases
ServerAdmin webmaster@myotherdomain
ServerName mydomain2.net
ServerAlias www.mydomain2.net
# SSL Certificate
#SSLEngine on
#SSLCertificateFile /etc/ssl/certs/mydomain2.net.pem
# Index file and Document Root (where the public files are located)
#DirectoryIndex index.html
DocumentRoot /home/super/public_html/mydomain2.net/current/public
# Custom log file locations
LogLevel warn
ErrorLog /home/super/public_html/mydomain2.net/shared/log/error.log
CustomLog /home/super/public_html/mydomain2.net/shared/log/access.log combined
# Custom error documents
#ErrorDocument 404 /errors/404.html
#ErrorDocument 403 /errors/403.html
# Mongrel Cluster ...
RewriteEngine On
BalancerMember http://127.0.0.1:8002
BalancerMember http://127.0.0.1:8003
# Redirect all non-static requests to Mongrel
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrelcluster%{REQUEST_URI} [P,QSA,L]
ProxyPass / balancer://mongrelcluster/
ProxyPassReverse / balancer://mongrelcluster/
ProxyPreserveHost on
Order deny,allow
Allow from all
# ... Mongrel Cluster
# Admin email, Server Name (domain name) and any aliases
ServerAdmin webmaster@myotherdomain
ServerName mydomain2.net
ServerAlias www.mydomain2.net
# SSL Certificate
SSLEngine on
SSLCertificateFile /etc/ssl/certs/mydomain2.net.pem
# Index file and Document Root (where the public files are located)
#DirectoryIndex index.html
DocumentRoot /home/super/public_html/mydomain2.net/current/public
# Custom log file locations
LogLevel warn
ErrorLog /home/super/public_html/mydomain2.net/shared/log/error.log
CustomLog /home/super/public_html/mydomain2.net/shared/log/access.log combined
# Custom error documents
#ErrorDocument 404 /errors/404.html
#ErrorDocument 403 /errors/403.html
# Mongrel Cluster ...
RewriteEngine On
BalancerMember http://127.0.0.1:8002
BalancerMember http://127.0.0.1:8003
# Redirect all non-static requests to Mongrel
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrelcluster%{REQUEST_URI} [P,QSA,L]
ProxyPass / balancer://mongrelcluster/
ProxyPassReverse / balancer://mongrelcluster/
ProxyPreserveHost on
Order deny,allow
Allow from all
# ... Mongrel Cluster