E
elduderino
Guest
Hi,
I've been trying to create virtual hosts using httpd.conf but have found out that plesk overrides this.... i need to check i'm doing the right things to get my virtual hosts working with plesk....so:
1. i've gone to /var/www/vhosts/mydomain.com/subdomains and created a directory and given it the name of the vitural host i want....and then created a directory called conf within that and put a file in the called vhost.conf....so the path now looks like this:
/var/www/vhosts/mydomain.com/subdomains/newsite.mydomain.com/conf
in conf ive created a file called vhost.conf and put some virtual hosting stuff in it:
<VirtualHost *:80>
ServerName www.newsite.mydomain.com
DocumentRoot /var/www/vhosts/mydomain.com/httpdocs/play
</VirtualHost>
i then run this ( because it said i should somewhere )
DocumentRoot /var/www/vhosts/boudaki.com/httpdocs/play
and re-started the apche server.
Now when i go to newsite.mydomain.com all i get is is the default server page......
Can anyone tell me what i'm doing wrong or if im on the right track at all???
There is another directory under /www called vhosts when i look in it the files for my main dite and the server default page can be found
I've been trying to create virtual hosts using httpd.conf but have found out that plesk overrides this.... i need to check i'm doing the right things to get my virtual hosts working with plesk....so:
1. i've gone to /var/www/vhosts/mydomain.com/subdomains and created a directory and given it the name of the vitural host i want....and then created a directory called conf within that and put a file in the called vhost.conf....so the path now looks like this:
/var/www/vhosts/mydomain.com/subdomains/newsite.mydomain.com/conf
in conf ive created a file called vhost.conf and put some virtual hosting stuff in it:
<VirtualHost *:80>
ServerName www.newsite.mydomain.com
DocumentRoot /var/www/vhosts/mydomain.com/httpdocs/play
</VirtualHost>
i then run this ( because it said i should somewhere )
DocumentRoot /var/www/vhosts/boudaki.com/httpdocs/play
and re-started the apche server.
Now when i go to newsite.mydomain.com all i get is is the default server page......
Can anyone tell me what i'm doing wrong or if im on the right track at all???
There is another directory under /www called vhosts when i look in it the files for my main dite and the server default page can be found