This file contains hidden or 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
| # [0-9].example.com -> /srv/tickets.example.com/[0-9]/app/build | |
| # http://nginx.org/en/docs/http/server_names.html | |
| server { | |
| listen 80; | |
| server_name "~^(?<subdomain>^\d).example.com$"; | |
| root /srv/tickets.example.com/$subdomain/app/build; | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # lxc: linux Container library | |
| # Authors: | |
| # Daniel Lezcano <[email protected]> | |
| # Modified: | |
| # Claudio Kuenzler |
This file contains hidden or 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
| sub vcl_recv { | |
| if (req.http.host == "www.example.com") { | |
| set req.http.location = "http://example.com" + req.url; | |
| return (synth(750, "Permanently moved")); | |
| } | |
| } | |
| sub vcl_synth { | |
| if (resp.status == 750) { | |
| set resp.http.location = req.http.location; |
This file contains hidden or 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
| [Unit] | |
| Description=repcached - add data replication feature to memcached 1.2.x | |
| After=network.target | |
| [Service] | |
| ExecStart=/opt/repcached/bin/memcached -m 256 -p 11211 -u root -P /var/run/memcachedrep.pid -x 1.2.3.4 -d | |
| Type=forking | |
| PIDFile=/var/run/memcachedrep.pid | |
| Restart=always |
NewerOlder