Sure!
Thnks a lot!
EC2 server.. 2 cores 4 gb ram, 40 GB
O.S: CentOs 6.7 x64
CWP: 9.8.14
Private ip: 172.31.xx.xx
Elastic Ip: 52.40.XX.XXX
In CWP private ip mentioned above is set as Server IP.
And as a default (CWP set this automatically during install)
Elastic Ip, is set as shared ip in CWP.
I´ve set two accounts.. each one with only one domain..
domainone.com and 2nd account with domaintwo.com
if I browse
www.domainone.com/info.php it goes ok!
if I browse
www.domaintwo.com/foot.php it shows..error 404, also if I browse
www.domaintwo.com/index.html error 404..
if I browse
www.domaintwo.com it shows CentOs default page.. but Im sure this index.html is not from the domaintwo.com account..
but..strangest thing is.. if you go to
www.domaintwo.com/info.php it shows its content!!! (but this file only exist on
www.domainone.com) so how is this possible?..is this a bug?
I guess that this is a problem with server ip and the public ip or hsa to do with virtualHost.. but honestly I'm not shure how to fix it..
When i Created the accounts..this was shown..
# vhost_start domaintwo.com
<VirtualHost 172.31.xx.xx:80>
ServerName domaintwo.com
ServerAlias
www.domaintwo.comServerAdmin mail@domaintwo.com
DocumentRoot "/home/usr2016/public_html"
ScriptAlias /cgi-bin/ "/home/usr2016/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/usr2016/domaintwo.com/*.conf
<IfModule mod_suexec.c>
SuexecUserGroup usr2016 usr2016
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup usr2016 usr2016
suPHP_ConfigPath /home/usr2016
</IfModule>
<Directory "/home/usr016/public_html">
AllowOverride All
</Directory>
</VirtualHost>
# vhost_end domaintwo.com
this are my cwp settings
Shared IP: 52.40.xx.xxx (default: 172.31.xx.xxx)
Apache Port: 80 (default: 80)
Root Email: xxxx@xxx.com
Forward root emails:
NAT Local IP: 172.31.xx.xx Activate NAT-ed Mod: (checked)
Thank you very much for your help!!!
regards
fredo