-
-
Save keokilee/429f39d20d08a8f37f69 to your computer and use it in GitHub Desktop.
Rails On Windows - HTTP VirtualHost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost _default_:80> | |
ServerName localhost | |
DocumentRoot “C:/<ruby stack>/projects/<project dir>/public” | |
<Directory “C:/<ruby stack>/projects/<project dir>/public”> | |
Allow from all | |
Options -MultiViews | |
Require all granted | |
</Directory> | |
RewriteEngine On | |
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f | |
RewriteRule ^/(.*)$ balancer://app_balancers%{REQUEST_URI} [P,QSA,L] | |
<Proxy balancer://app_balancers> | |
BalancerMember http://localhost:3000/ | |
BalancerMember http://localhost:3001/ | |
</Proxy> | |
<LocationMatch “^/assets/.*$”> | |
Header unset ETag | |
FileETag None | |
# RFC says only cache for 1 year | |
ExpiresActive On | |
ExpiresDefault “access plus 1 year” | |
</LocationMatch> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment