| Linode Forum https://forum.linode.com/ |
|
| Trying to map a folder to a sub-domain - Apache config issue https://forum.linode.com/viewtopic.php?f=19&t=10878 |
Page 1 of 1 |
| Author: | redhat19 [ Tue Feb 25, 2014 9:31 am ] |
| Post subject: | Trying to map a folder to a sub-domain - Apache config issue |
Hi everyone, I would greatly appreciate it if someone could help point out what I might have done wrong in trying to map a folder on our server i.e mywebsite.com/abc to a similarly named subdomain i.e abc.mywebsite.com. Our Linux is CentOS 6.4 on a VPS hosted by Linode ..and here's what the virtual hosts section of Apache config file looks like: Code: <VirtualHost 12.34.56.78:80> (I copied the 2nd section of the virtual host section of our Apache config to form the 3rd section and made modifications to it to work with abc.mywebsite.com). The site resolves, but abc.mywebsite.com its resolving to mywebsite.com. I'm now thinking that there must be an issue with the Apache config file.. Can anyone help spot it? Many thanks. |
|
| Author: | Nibbler [ Tue Feb 25, 2014 11:43 am ] |
| Post subject: | Re: Trying to map a folder to a sub-domain - Apache config i |
The DocumentRoot is the same in all your vhosts so they all have the same content. |
|
| Author: | redhat19 [ Tue Feb 25, 2014 5:36 pm ] |
| Post subject: | Re: Trying to map a folder to a sub-domain - Apache config i |
Hi Nibbler, Thanks for your response. I have changed document root to Code: /var/www/vhosts/mywebsite.com/httpdocs/abc and/or Code: /var/www/vhosts/mywebsite.com/httpdocs/abc/ and restarted the server a number of times. but abc.mywebsite.com still resolves to mywebsite.com Could there be other factors that could be responsible for it not resolving to the subdmain/folder? e.g my DNS entries for creating this subdomain. Here's what my DNS entries look like: Code: DNS Manager ยป abc.mywebsite.coom Are you able to spot anything I might have entered wrongly? Thanks. |
|
| Author: | Chrisnetika [ Fri Apr 18, 2014 7:39 pm ] |
| Post subject: | Re: Trying to map a folder to a sub-domain - Apache config i |
I was able to do this using apache admin module in webmin.I have completely diff folders for diff virtual host that not even in main htdocs folder hierachy |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|