V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  la0wei  ›  全部回复第 29 页 / 共 35 页
回复总数  692
1 ... 21  22  23  24  25  26  27  28  29  30 ... 35  
@icedx nginx nginx/conf/vhost 中的xxxxxx.com 文件
server
{
listen 80;
server_name xxxxxx.com www.xxxxxx.com; #server_name end
index index.html index.htm index.php; #index end

set $subdomain '';
root /home/wwwroot/xxxxxx.com/web$subdomain;
include rewrite/wordpress.conf; #rewrite end

#error_page
error_page 400 /ErrorPages/400.html;
error_page 403 /ErrorPages/403.html;
error_page 404 /ErrorPages/404.html;
error_page 502 /ErrorPages/502.html;
location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$
{
root /home/wwwroot/xxxxxx.com/web;
}


location ~ .*\.php$
{
fastcgi_pass unix:/tmp/php-cgi-xxxxxx.com.sock;
fastcgi_index index.php;
include fcgi-host.conf;
fastcgi_param DOCUMENT_ROOT /web$subdomain;
fastcgi_param SCRIPT_FILENAME /web$subdomain$fastcgi_script_name;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$
{
expires 30d;
}

location ~ .*\.(js|css)$
{
expires 12h;
}

access_log off; #access_log end
error_log /home/wwwroot/xxxxxx.com/log/error.log crit; #error_log end
}



另一个文件
nginx/conf/nginx.conf
user www www;
worker_processes auto;
error_log /home/wwwroot/index/log/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;

events
{
use epoll;
worker_connections 51200;
}

http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 4k;
large_client_header_buffers 4 4k;
client_max_body_size 50m;

sendfile on;
tcp_nopush on;

keepalive_timeout 60 60;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 16k;
fastcgi_buffers 16 16k;
fastcgi_busy_buffers_size 16k;
fastcgi_temp_file_write_size 16k;
fastcgi_intercept_errors on;
proxy_cache_valid 200 304 12h;
proxy_cache_key $scheme://$host$request_uri;
proxy_temp_path /home/amproxy_cache_tmp;
proxy_cache_path /home/amproxy_cache levels=1:2 keys_zone=amproxy:20m inactive=10d max_size=2g;

tcp_nodelay on;
server_tokens off;
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml;
gzip_disable "MSIE [1-6].(?!.*SV1)";
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';

include vhost/*.conf;
include proxy/*.conf;
server
{
listen 8888;
server_name 106.185.43.**;
index index.html index.htm index.php;
root /home/wwwroot/index/web;
fastcgi_buffer_size 4k;
fastcgi_buffers 8 4k;
fastcgi_busy_buffers_size 4k;
gzip off;

location ~ .*\.php$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

access_log /home/wwwroot/index/log/access.log combined;
error_log /home/wwwroot/index/log/error.log crit;
}

server
{
listen 80 default;
return 400;
}
}
@oott123 @icedx 同问,我用的amh4.2的面板,不知道这些请求怎么会在访问日志里的
2014-12-25 15:39:33 +08:00
回复了 silverk 创建的主题 服务器 如何反向代理到长城宽带
site:v2ex.com ssh 反向链接
directspace 波特兰,有段时间很快,后来就和当年电信到网通一样
2014-11-25 18:34:01 +08:00
回复了 kstsca 创建的主题 问与答 新的清明上河图谁有原版高清的?
太多横幅,原本含蓄的表达被破坏了
2014-11-17 17:25:40 +08:00
回复了 Livid 创建的主题 程序员 关于程序员的抑郁和焦虑
@dawnygas 赞同,不过这东西应该会转移,往大了说,就是时代。
2014-11-17 17:16:35 +08:00
回复了 kawaiiushio 创建的主题 分享发现 鹅厂让大家开心开心
@kawaiiushio 还是算了,一团墨一样,不适应。一方通行?
2014-11-17 17:14:49 +08:00
回复了 vvard3n 创建的主题 程序员 各位码友对电脑桌和凳子有没有好的推荐?
@ameaglet 架不住造型帅啊。咱住不起龙纹身女孩中那种全玻璃外墙的别墅,咱还不能享受下他们的电脑桌?这桌子在特定环境下或者特定人群才好看。亲戚家用的类似大班桌,也挺好看,放这桌子就显得有些不伦不类了。 可还是难忘这桌子的设计,所以楼主一问到电脑桌,我就想起这张桌子。
2014-11-17 17:04:12 +08:00
回复了 kawaiiushio 创建的主题 分享发现 鹅厂让大家开心开心
为何页面中的关注按钮是繁体?用的香港vps访问的?肉身翻墙?
2014-11-17 17:01:06 +08:00
回复了 vvard3n 创建的主题 程序员 各位码友对电脑桌和凳子有没有好的推荐?
@evlos 佳兰特那种A型腿太帅了,看起来特有范,很有淘宝商家在宝贝介绍里贴出的设计师照片的感觉(这么形容是否有些掉bigger?)
但是我这买不了,需要去外地然后运回来,嫌麻烦,换新房的时候一定要把这桌子收张。
1 ... 21  22  23  24  25  26  27  28  29  30 ... 35  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2552 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 14:31 · PVG 22:31 · LAX 07:31 · JFK 10:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.