instant subdomains - is this possible?

Using a single web hosting account to host multiple sites

instant subdomains - is this possible?

Postby isulong seoph » Fri Sep 22, 2006 11:23 pm

Hi,

I have been thinking about this but I've very new and still have to start learning more about Apache. I need this for an SEO experiment and I hope this is possible.

Lets say I have created 100 folders of my index.php then what I want to happen is that I just upload these folders to my public_html/ as subdomains

http://folder001.domain.ext
http://folder002.domain.ext
http://folder003.domain.ext
http://folder004.domain.ext

Creating too much subdomains or virtualhosts on my server will just give httpd a long list to be loaded by apache so am thinking that is it possible that just to add/configure some lines on the httpd.conf, some DNS zone and use mod_rewrite?

It's really a pain for the server to have lots of virtualhost. Is this possible? Please help me learn this easy.

Thanks in advance.
isulong seoph
 
Posts: 2
Joined: Fri Sep 22, 2006 10:37 am

Postby richardk » Sat Sep 23, 2006 4:40 am

Lets say I have created 100 folders of my index.php

You've what? You've created real dircetories with real index.php files in them?

http://httpd.apache.org/docs/2.0/mod/mo ... alias.html
http://httpd.apache.org/docs/2.0/vhosts/mass.html

Something like this
Code: Select all
<VirtualHost *:80>
  ServerName domain.ext
  ServerAlias www.domain.ext
  DocumentRoot /path/to/public_html
</VirtualHost>

<VirtualHost *:80>
  ServerName folder001.domain.ext
  ServerAlias *.domain.ext
  VirtualDocumentRoot /path/to/public_html/%1
</VirtualHost>
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby isulong seoph » Sat Sep 23, 2006 7:26 am

hello Richard,

Yes, real folders with index files on them. My brother made them all manually and for me to use to SEO purposes.

Thanks so much for providing me the rule and pointing me to the proper documentation in apache.

I will work on this now and will report if this works.

BTW Richardk, I see that you helped a lot of people who seek mod_rewrite problems and it's good! I'm glad to find this forum. Very helpful indeed :D
isulong seoph
 
Posts: 2
Joined: Fri Sep 22, 2006 10:37 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 45 guests

cron