new vHost domain does not redirect - only showing DocumentRoot

Started by kking124, July 20, 2016, 01:09:34 PM

Previous topic - Next topic

kking124

I've created a new user with a domain, but instead of the vHost working it just shows the document root. My vHost.conf is below


# vhost_start
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerName {domain}
ServerAlias www.{domain}
ServerAdmin {admin}
DocumentRoot "/home/{user}/public_html"
ScriptAlias /cgi-bin/ "/home/{user}/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/{user}/{domain}/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup {user} {user}
</IfModule>

<IfModule mod_suphp.c>
        suPHP_UserGroup {user} {user}
        suPHP_ConfigPath /home/{user}
</IfModule>

<Directory "/home/{user}/public_html">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end

kking124

I have fixed the issue.

I needed to configure NAT Local IP and enable Activate NAT-ed Mod (CWP Settings > Edit Settings).

I am using an AWS hosted VM for this, and the public IP was not assigned directly to the machine.

Edit: added the webhost panel menu location of the thing I configured