Hello,
I cannot find out why the sub-server is not displaying the content of its public_html
directory but instead the content of the parent server’s public_html
. Both servers are using a external shared IP address.
Here is my setup (not with the real IPs and domain names though…), in chronological order:
- installed 'webmin / virtualmin gpl' on my dedicated server (debian jessie)
- bought IP external addresses (from 'ovh') and installed them manually by editing the
/etc/network/interface
file (following ovh documentation: http://docs.ovh.ca/en/guides-network-ipaliasing.html#debian-derivatives) - created the parent virtual server:
- domain name:
example.com
- administrative user:
examplecom
- features: apache website and webmin access (no ssl, no mail related feature, no dns)
- document root:
/home/examplecom
- files for the website in
/home/examplecom/public_html/
- IP address www.xxx.yyy.zzz, already active, external IP address www.xxx.yyy.zzz, already active, no ipv6 address
- domain name:
- uploaded the index.html file containing
this is example.com
in/home/examplecom/public_html/
- on my registrar, setup the DNS of
example.com
to point to www.xxx.yyy.zzz - when I visit http://example.com, it works fine, I can see
this is example.com
- shared the IP www.xxx.yyy.zzz (
Server Configuration
>Change IP address
, click onConvert Private Address to Shared
) - created the sub-server of
example.com
:- domain name:
otherdomain.com
- server configuration template
settings for sub-servers
- parent server:
example.com (examplecom)
- administrative user:
examplecom
- enabled features: apache website and webmin access (no ssl, no mail related feature, no dns)
- IP address
shared on non default IP www.xxx.yyy.zzz
, external IP address www.xxx.yyy.zzz, no ipv6 address
- domain name:
- uploaded the index.html file containing
this is otherdomain.com
in/home/examplecom/domains/otherdomain.com/public_html/
- on my registrar, setup the DNS of
otherdomain.com
to point to www.xxx.yyy.zzz
The problem is that when I visit http://otherdomain.com, I see this is example.com
and not this is otherdomain.com
.
What am I doing wrong?