Skip to content

Commit 69d684e

Browse files
author
Seiichi Yonezawa
committed
Fix nginx syntax
1 parent 3bdc090 commit 69d684e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deployment/lighttpd_proxied_to_thin.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Change the /path/to/my/app path to reflect reality.
5252
Change mydomain to reflect reality. Also make sure the first port
5353
here matches up with the port setting in config.yml.
5454
55-
```
55+
```conf
5656
$HTTP["host"] =~ "(www\.)?mydomain\.com" {
5757
proxy.balance = "fair"
5858
proxy.server = ("/" =>
@@ -78,16 +78,16 @@ now, check it out at the domain you setup in your lighttpd.conf file.
7878
*Variation* - nginx via proxy - The same approach to proxying can be applied to
7979
the nginx web server
8080

81-
```
81+
```conf
8282
upstream www_mydomain_com {
8383
server 127.0.0.1:5000;
8484
server 127.0.0.1:5001;
8585
}
8686
8787
server {
88-
listen www.mydomain.com:80
88+
listen www.mydomain.com:80;
8989
server_name www.mydomain.com live;
90-
access_log /path/to/logfile.log
90+
access_log /path/to/logfile.log;
9191
9292
location / {
9393
proxy_pass http://www_mydomain_com;

0 commit comments

Comments
 (0)