1

The vhosts are managed with the puppetlabs-apache module and I can not access the website with www but I can without it. When i use www I get a blank page and there are no errors an any logs and non www works fine.

Here is the conf file for the website

# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************

<VirtualHost *:80>
  ServerName www.example.com

  ## Vhost docroot
  DocumentRoot "/var/www/vhosts/example.com/httpdocs"



  ## Directories, there should at least be a declaration for /var/www/vhosts/example.com/httpdocs


  <Directory "/var/www/vhosts/example.com/httpdocs">
    AllowOverride ALL
    Order allow,deny
    Allow from all
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_UserGroup jasonnarog jasonnarog
  </Directory>

  ## Load additional static includes


  ## Logging
  ErrorLog "/var/www/vhosts/example.com/logs/www.example.com_error.log"
  ServerSignature Off
  CustomLog "/var/www/vhosts/example.com/logs/www.example.com_access.log" combined




  ## Server aliases
  ServerAlias example.com
  suPHP_AddHandler x-httpd-php
  suPHP_Engine on
</VirtualHost>

I tried switching the alias and servername but get the same result.

Yamiko
  • 143
  • 5

0 Answers0