请问军哥,如何更改虚拟主机端口号啊?
求助军哥,我创建了一个虚拟主机访问地址为http://172.16.0.35默认端口为80,我把默认端口更改为86之后访问http://172.16.0.35:86直接403 Forbiddeniptables加进86端口了!
请问军哥,如何更改虚拟主机端口号啊?
log_format
172.16.0.35'$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
server
{
listen 86;
server_name 172.16.0.35;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/koy;
include wordpress.conf;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_passunix:/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/wwwlogs/
172.16.0.35 .log
172.16.0.35 ;
}
[ 本帖最后由 koy1619 于 2012-8-15 16:09 编辑 ] 403 Forbidden 肯定是目录下面没index文件
页:
[1]