为什么我的Apache虚拟主机显示Apache的默认页面?

时间:2018-01-10 14:15:19

标签: apache virtualhost httpd.conf

我有两个虚拟主机,但是当我试图访问它们时,它们会一直向我显示apache的默认页面...但是当我为exp myvirtualhost.com/mydiroctory添加projet目录时,它的工作原理这就是我所拥有的在conf。部分

> NameVirtualHost ***.**.**.**:81 
 NameVirtualHost ***.**.**.**:82
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for all requests that do not
> # match a ServerName or ServerAlias in any <VirtualHost> block.
> #
> #LoadModule proxy_module modules/mod_proxy.so
> #ProxyRequests On 
  <VirtualHost ***.**.**.**:81>
>        ServerName mrh.star.com.tn
>        <Directory "/var/www/html/mrh">
>         
>        Options +ExecCGI Indexes MultiViews FollowSymLinks
>     AllowOverride None
>     Order allow,deny
>     Allow from all
>         </Directory>
>    
> 
>     ServerAdmin webmaster@star.com.tn
>     DocumentRoot "/var/www/html/mrh"
>     ErrorLog "logs/mrh-error.log"
>     CustomLog "logs/mrh.log" common </VirtualHost>
> 
> <VirtualHost ***.**.**.**:82>
>        ServerName voyage.star.com.tn
>         <Directory "/var/www/html/voyage">
>         
>                
>          Options +ExecCGI Indexes FollowSymLinks MultiViews
>         AllowOverride None
>         Order allow,deny
>         allow from all
>         </Directory>
>     ServerAdmin webmaster@star.com.tn
>     DocumentRoot "/var/www/html/voyage"
> 
>     ErrorLog "logs/voyage-error.log"
>     CustomLog "logs/voyage.log" common </VirtualHost>

它曾经工作,但我不知道发生了什么,错误日志中没有任何内容 有什么建议吗?

0 个答案:

没有答案