DeveloperSide.NET Forums

DeveloperSide.NET => Anything else goes here => Topic started by: Jonpopnycorn on November 21, 2006, 09:37:32 AM



Title: subdomain help
Post by: Jonpopnycorn on November 21, 2006, 09:37:32 AM
I need help making http://www.mysite.com/forum/ to http://forum.mysite.com/ :?

Thanks Jon :wink:


Title: subdomain help
Post by: admin on November 21, 2006, 02:25:21 PM
Are you self-hosting or are you using a provider?

You will need to update your hosting provider's [or registrar's] DNS records, by adding a subdomain record and pointing it to your ip address.

If this is something local only... You can just edit the Windows HOSTS file, with domain and subdomain pointing to 127.0.0.1. In which case, Windows will resolve that domain locally.

Then you will need to create a virtualhost under apache. Its a simple procedure, lots of examples everywhere.

The final step it to configure your forum software.


Title: subdomain help
Post by: Jonpopnycorn on November 21, 2006, 11:27:12 PM
Quote from: "admin"
Are you self-hosting or are you using a provider?


Im self hosting

i tried this but it didnt work :(

Code:
NameVirtualHost MY.IP

<VirtualHost MY.IP>
   ServerName forum.mysite.com
   DocumentRoot "/www/webroot/forum"
   <Directory "/www/webroot/forum">
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


Title: subdomain help
Post by: admin on November 22, 2006, 01:45:30 AM
Edit file C:\Windows\system32\drivers\etc\HOSTS

Add lines...

127.0.0.1 mysite.com
127.0.0.1 forums.mysite.com

Note that IP and domain are tab separated.

Code:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName forums.mysite.com
DocumentRoot /www/webroot/forums
...