|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to configure a subdomain in my server..like http://user.domain.com
It should point to another folder htdocs/users instead of htdocs. I have try <virtualhost> in my httpd.cong file but it doesnt work, i heard something about CNAME. Is cname what it needs to have changes? what is and where is that cname? Can somebody help me with this? |
|
#2
|
|||
|
|||
|
I would like to do the same thing on my server and have not been able to figure out how to do it. Could someone please help us out? Thanks!
|
|
#3
|
|||
|
|||
|
I am trying to do the same thing. Could somebody please help?
Thanks in advance, Bakassi. |
|
#4
|
|||
|
|||
|
I have done it many times (successfully) using the example config that comes near the end of httpd.conf.
example (works for me anyway )<VirtualHost sub.domain.com> ServerAdmin webmaster@domain.com DocumentRoot /usr/www/sub.domain.com/ ServerName sub.domain.com ErrorLog /usr/local/apache/logs/sub.domain.com_error_log </VirtualHost> And vhola, it works for me. |
|
#5
|
|||
|
|||
|
One way, I have done this is to create a new virtual host directive.
For example, <VirtualHost 172.5.43.23> ServerName sub.domain.net DocumentRoot /home/siteuser/public_html/ </VirtualHost> Want to forward it to another domain? No problem... <VirtualHost 172.5.43.23> ServerName sub.domain.net Redirect / http://www.otherdomain.com </VirtualHost> Best regards, Frank |
|
#6
|
|||
|
|||
|
Thanks four your help, the <virtualhost> is working perfect, but one thing i cant do is to give @otherdomains.com mail to people.
Anyone can help me with this. Regards. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > subdomain conf.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|