Created
March 19, 2012 22:26
-
-
Save inossidabile/2127685 to your computer and use it in GitHub Desktop.
Hashbang nginx config sample
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
upstream hashbang-localhost { | |
server localhost:22333; | |
} | |
server { | |
listen 80; | |
server_name ...; | |
location / { | |
if ( $request_uri ~ _escaped_fragment_= ) { | |
proxy_pass http://hashbang-localhost/?url=http://$host$request_uri; | |
} | |
root ...; | |
passenger_enabled on; | |
} | |
} | |
server { | |
listen 22333; | |
server_name localhost; | |
location / { | |
limit_conn perserver 5; | |
root .../hashbang/public; | |
passenger_enabled on; | |
} | |
} |
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
class ApplicationPage | |
@afterLoad -> | |
@bind 'loaded', -> Sunscraper?.finish() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment