Domains to point on myserver like ning, google apps etc

Using a single web hosting account to host multiple sites

Domains to point on myserver like ning, google apps etc

Postby yalamber » Wed Apr 29, 2009 9:32 pm

I was wondering if it is possible to make a service like ning, kickapps or google apps for domain offer. Like point the domains to my server dns and then domains will replace their site's url with the one my service would offer them. May be i got too confusing here. Just trying to know how we can do it. Is it possible to make it with htaccess?
yalamber
 
Posts: 15
Joined: Fri Sep 07, 2007 12:52 am
Location: biratnagar

Postby richardk » Thu Apr 30, 2009 12:55 pm

It's not possible with just .htaccess. You would need access to Apache's main server configuration.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

I have a vps server can you tell me how i can do that

Postby yalamber » Thu Apr 30, 2009 1:20 pm

Hello, thanks for the reply. I have access to server. I have a vps server. I googled for a while and what i want is following to work.
I will point the domains to my servers dns address say ns1.mydomain.com and ns2.mydomain.com
I would like to know if it's possible to show a default sites for all the domains that point to my server without adding/parking them through cpanel.
thanks
yalamber
 
Posts: 15
Joined: Fri Sep 07, 2007 12:52 am
Location: biratnagar

Postby richardk » Fri May 01, 2009 10:55 am

The same site for all the domains? A default <VirtualHost> would do that
Code: Select all
# Default
<VirtualHost *:80>
  ServerName _default_
  DocumentRoot /default/document/root
</VirtualHost>

# For example.com and www.example.com
<VirtualHost *:80>
  ServerName example.com
  ServerAlias www.example.com
  DocumentRoot /example.com/www
</VirtualHost>

# For example.net and *.example.net
<VirtualHost *:80>
  ServerName example.net
  ServerAlias *.example.net
  DocumentRoot /example.net/all
</VirtualHost>
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 26 guests

cron