二级域名重定向解析不到指定目录
域名:http://www.ibmic.cn/二级域名:http://admin.ibmic.cn/#admin.ibmic.cn.conf
server
{
listen 80;
server_name admin.ibmic.cn;
index index.php index.html index.htm default.html default.htm default.php;
root/home/wwwroot/www.ibmic.cn/myVue/dist;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /status {
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
#www.ibmic.cn.conf
server
{
listen 80;
server_name www.ibmic.cn;
index index.php index.html index.htm default.html default.htm default.php;
root/home/wwwroot/www.ibmic.cn/myVue/dist;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /status {
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
#nginx.conf
server
{
listen 80 ;
server_name localhost;
index index.html index.htm index.php;
root/home/wwwroot/default;
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location /phpfpm_status {
fastcgi_pass127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log/home/wwwlogs/access.log;
}
include vhost/*.conf;
}
[ 本帖最后由 superMac 于 2017-2-8 17:52 编辑 ] ##发错了#admin.ibmic.cn.conf
server
{
listen 80;
server_name admin.ibmic.cn;
index index.php index.html index.htm default.html default.htm default.php;
root/home/wwwroot/admin.ibmic.cn;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /status {
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
[ 本帖最后由 superMac 于 2017-2-8 17:53 编辑 ] 军哥!!谢谢了!!不用看了已经解决了!!
找了半天没找到在哪删除帖子!!不好意思让你费心了看了!!
页:
[1]