Author Topic: new vHost domain does not redirect - only showing DocumentRoot  (Read 7992 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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

Code: [Select]
# 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

Offline
*
Re: new vHost domain does not redirect - only showing DocumentRoot
« Reply #1 on: July 20, 2016, 02:42:59 PM »
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
« Last Edit: July 20, 2016, 03:05:47 PM by kking124 »