澳门新葡新京只能访问到主页怎么办

Linux配置虚构主机后,只好访问到主页怎么做?

后日构造了lamp后,加多了二个设想主机,配置http.conf后,扩大虚构主机,测量检验访谈开采独有域名下能访谈,ljt.com然而域名下具备的都访谈不到。

Httpd-vhost..conf

<VirtualHost *:80>

DocumentRoot “/usr/local/apache/htdocs/cyds”

ServerName cyds.ljt.com

Errorlog logs/cyds.ljt.com.err

CustomLog logs/cyds.ljt.com.access common

<Directory “/usr/local/apache/htdocs/cyds”>

Options FollowSymLinks

AllowOverride None

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

查了半天禀料:

少了权力难题:

末段我们必要在apache配置文件/opt/lampp/etc/httpd.conf中增添一下网址目录的拜访权限。

<Directory "/opt/lampp/www/site1">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

 

 

安排lamp遇到设想主机参谋:

相关文章