Re: Virtual Hosts question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Feb 6, 2014 at 11:54 AM, Joseph Hesse <joehesse@xxxxxxxxx> wrote:

>
> ============== httpd.conf ==============
> ServerName 192.168.0.99
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
>   ServerName IDoNotExist.com
>   DocumentRoot /var/www/html
>   DirectoryIndex Index.html index.html
> </VirtualHost>
>
> <VirtualHost *:80>
>   ServerName X.com
>   ServerAlias www.X.com
>   DocumentRoot /var/www/wordpress
>   DirectoryIndex Index.html index.html index.php Index.php
>   CustomLog logs/access_log_custom common
> </VirtualHost>
> ============== httpd.conf ==============
>
> ========Tail of error.log ==================
> [Thu Feb 06 10:26:01 2014] [error] [client 24.118.254.66] Directory
> index forbidden by Options directive: /var/www/wordpress/
> ============== error.log ==============
>


update your httpd.conf...
  http://httpd.apache.org/docs/2.2/mod/core.html#options

 ============== httpd.conf ==============
ServerName 192.168.0.99

NameVirtualHost *:80

<Directory /var/www/wordpress>
 Options Indexes FollowSymLinks
</Directory>

< VirtualHost *:80>
  ServerName IDoNotExist.com
  DocumentRoot /var/www/html
  DirectoryIndex Index.html index.html
< /VirtualHost>

< VirtualHost *:80>
  ServerName X.com
  ServerAlias www.X.com <http://www.x.com/>
  DocumentRoot /var/www/wordpress
  DirectoryIndex Index.html index.html index.php Index.php
  CustomLog logs/access_log_custom common
< /VirtualHost>
============== httpd.conf ==============
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux