关于域名访问后面自带了个端口号的问题
环境:阿里云centos 6.6安装的LNMP一键包刚解析完,本来我想访问www.abc.com的网站,结果地址栏直接成了www.abc.com:8086,
我之前配置nginx.conf时,的确有写过8086的端口,可我后来改成80了,但不管怎么改,
输入域名www.abc.com一回车还是www.abc.com:8086.下面是我的配置文件,不知道是不是哪儿出了问题
请在神们指点下,谢谢了
server
{
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
server_name www.xxxxxx.com;
index index.html index.htm index.php;
root/home/wwwroot/wordpress;
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
#location / {
# try_files $uri $uri/ /index.php?$query_string;
#}
access_log/home/wwwlogs/access.log;
}
server
{
listen 8880;
#listen [::]:8880 default_server ipv6only=on;
server_name dai.greatbing.com;
index index.html index.htm index.php;
root/home/wwwroot/dai/public;
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
access_log/home/wwwlogs/access.log;
}
页:
[1]