Author Topic: new user domain going to main...  (Read 932 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
new user domain going to main...
« on: March 30, 2018, 02:15:36 AM »
Hi Support,

Usually find the answers myself but this time it is not working.

Pointed the DNS as the server a few days ago and then added a new user to the server with the domain. When I go to the domain it resolves to the root directory of the host and shows the contents:

img/
info.php
laravel/
php.ini
phpMyAdmin/
roundcube/
webftp_simple/

Very concerned about this and removed the domain. Need to have this resolved and help will be great.

Offline
*
Re: new user domain going to main...
« Reply #1 on: April 04, 2018, 10:00:06 AM »
I have dug a little and found the new domain is showing the contents of:

/usr/local/apache/htdocs/

Why?

Here is the VHost setup
Code: [Select]
# vhost_start *****.ca
<VirtualHost 23.****.102:80>
ServerName ****.ca
ServerAlias www.****.ca
ServerAdmin webmaster@****.ca
DocumentRoot /home/****/public_html/*****.ca/
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/***/public_html/*****//cgi-bin/

# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/***/***/***.ca/*.conf

<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled daowenpu
</IfModule>

<IfModule mod_suexec.c>
SuexecUserGroup **** ****
</IfModule>

<IfModule mod_suphp.c>
suPHP_UserGroup **** ****
suPHP_ConfigPath /home/****
</IfModule>

<Directory "/home/****/public_html/****.ca/">
AllowOverride All
</Directory>

</VirtualHost>
# vhost_end ****.ca

Offline
*
I also have this problem
« Reply #2 on: April 08, 2018, 03:14:21 AM »
I also have this problem, the domains point to / var / www / html and not to the folder that I established, could you solve it? I would appreciate your help