所有指向到这个VPS上,但是没有绑定的域名,都可以访问到这个默认的站点。
这个是整个Web服务器的默认站点,不能针对IP进行单独设置。
mkdir /home/admin/default chown admin:admin /home/admin/default
编辑/etc/lighttpd/lighttpd.conf,将
server.document-root = "/home/kloxo/httpd/default/"
改为
server.document-root = "/home/admin/default/"
在配置文件最后添加
fastcgi.server = (".php" =>(( "socket" => "/var/tmp/lighttpd/php.socket.default." + var.PID, "bin-path" => "/usr/bin/lxsuexec", "min-procs" => 0, "max-procs" => 1, "bin-environment" => ( "MUID" => "1006", "GID" => "1006", "TARGET" => "/usr/bin/php-cgi", "NON_RESIDENT" => "0", "PHP_FCGI_CHILDREN" => "0", "PHP_FCGI_MAX_REQUESTS" => "100000000" ), "max-load-per-proc" => 1000, "idle-timeout" => 3 )) )
默认站点已经设置为default目录。