Created
September 24, 2013 06:48
-
-
Save zwf/6681150 to your computer and use it in GitHub Desktop.
a vhost config for nginx form lnmp一键安装包
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
server | |
{ | |
listen 80; | |
server_name www.abc.com abc.com; | |
index index.html index.htm index.php default.html default.htm default.php; | |
root /home/wwwroot/www.julejie.com; | |
location / { | |
try_files $uri @apache; | |
} | |
location @apache { | |
internal; | |
proxy_pass http://127.0.0.1:88; | |
include proxy.conf; | |
} | |
location ~ .*\.(php|php5)?$ | |
{ | |
proxy_pass http://127.0.0.1:88; | |
include proxy.conf; | |
} | |
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ | |
{ | |
expires 30d; | |
} | |
location ~ .*\.(js|css)?$ | |
{ | |
expires 12h; | |
} | |
access_log off; | |
} | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment