Skip to content

Instantly share code, notes, and snippets.

@bartek
Created July 30, 2009 16:28
Show Gist options
  • Save bartek/158765 to your computer and use it in GitHub Desktop.
Save bartek/158765 to your computer and use it in GitHub Desktop.
server {
2 listen 98.129.237.54:80;
3 server_name www.mysite.com;
4 rewrite ^/(.*) http://mysite.com/$1 permanent;
5 }
6
7 server {
8 listen 98.129.237.54:80;
9 server_name mysite.com;
10
11 access_log /home/admin/domains/mysite/log/access.log;
12 error_log /home/admin/domains/mysite/log/error.log;
13
14 location / {
15 proxy_pass http://127.0.0.1:80/;
16 include /etc/nginx/proxy.conf;
17 }
18
19 location /m {
20 root /home/admin/domains/mysite/;
21 expires 1d;
22 }
23 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment