@wuYin
我现在把nginx配置改成了
server {
listen 80;
root /www/web/novel/public_html;
server_name ~^(?.+).m.myname.com;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 503 /errpage/503.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location ~ ^/fromid/$subdomain {
proxy_pass http://$subdomain.m.myname.com;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
这样不行