By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

I need a subdomain service like kickme.to

P: n/a
I want to give users of my site the option to register for a subdomain
redirection service. I scanned the Internet for some script, but
didn't really find anything that works. Tried the PHP script from
http://opendomains.vnn.bz/ and many others. So now I want to ask you
if you know of any script in PHP, Perl, Phyton that can accomplish
this task?

May 30 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
stiv wrote:
I want to give users of my site the option to register for a subdomain
redirection service. I scanned the Internet for some script, but
didn't really find anything that works. Tried the PHP script from
http://opendomains.vnn.bz/ and many others. So now I want to ask you
if you know of any script in PHP, Perl, Phyton that can accomplish
this task?
Cant be that hard .. Google for apache mod_rewrite

1. Use mod rewrite to rewrite any subdomain (except www/your_own etc) to
redirect.php?domain=$1
2. Check the domain and redirect :-)

Will that help you or do you need some code ?

Floortje

May 30 '07 #2

P: n/a
Floortje wrote:
1. Use mod rewrite to rewrite any subdomain (except www/your_own etc) to
redirect.php?domain=$1
2. Check the domain and redirect :-)
0. Set up a wildcard DNS entry to point anything.example.com to your
server.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 18:34.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #3

P: n/a
On 30 Mai, 12:49, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Floortje wrote:
1. Use mod rewrite to rewrite any subdomain (except www/your_own etc) to
redirect.php?domain=$1
2. Check the domain and redirect :-)

0. Set up a wildcard DNS entry to point anything.example.com to your
server.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 18:34.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
I've allready set up a wildcard DNS entry, now I just need some code.
I am not comfortable with programming so I would need a script whitch
does the job for me. Does anyone know about one that works?

May 30 '07 #4

P: n/a
I've allready set up a wildcard DNS entry, now I just need some code.
I am not comfortable with programming so I would need a script whitch
does the job for me. Does anyone know about one that works?
If I understand your requirements correctly, all you need to do is set-up
virtual hosts in your httpd.conf file in Apache.

You can use PHP to write to this file.

Also check the newsgroup alt.apache.configuration

Cheers

Phil
May 30 '07 #5

P: n/a
On 30 Mai, 17:42, "Phil Latio" <phil.la...@f-in-stupid.co.ukwrote:
I've allready set up a wildcard DNS entry, now I just need some code.
I am not comfortable with programming so I would need a script whitch
does the job for me. Does anyone know about one that works?

If I understand your requirements correctly, all you need to do is set-up
virtual hosts in your httpd.conf file in Apache.

You can use PHP to write to this file.

Also check the newsgroup alt.apache.configuration

Cheers

Phil
I'm not a programmer. So I don't know where to start. I just though
since it is such a simple task, there must be a script out there witch
can handle virtual hosts. In addition it should be possible to sign up
and manage ones sub domain.

regards,
stiv

May 30 '07 #6

P: n/a
Phil Latio wrote:
If I understand your requirements correctly, all you need to do is set-up
virtual hosts in your httpd.conf file in Apache.

You can use PHP to write to this file.
No -- at most two virtual hosts should be set up in Apache for this
application -- one for the main website of the service, the other to
handle *all* the subdomains.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 96 days, 23 min.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #7

P: n/a
On 30 Mai, 18:39, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Phil Latio wrote:
If I understand your requirements correctly, all you need to do is set-up
virtual hosts in your httpd.conf file in Apache.
You can use PHP to write to this file.

No -- at most two virtual hosts should be set up in Apache for this
application -- one for the main website of the service, the other to
handle *all* the subdomains.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 96 days, 23 min.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
But I have no programming experience. So I only partially understand
what you are talking about.

Does somebody know about a open-source script witch I can download?

May 30 '07 #8

P: n/a
stiv wrote:
But I have no programming experience. So I only partially understand
what you are talking about.

Does somebody know about a open-source script witch I can download?

No, and since you have no programming experience you probably wont get
it to work either.

I wouldn't recommend doing this if you dont know what is going on.
People could (will) abuse such a script if it's not done properly.

For instance I could create lots of subdomains with random content and
link it to a site selling v-i-a-g-r-a and other yummies. You would get
kicked out of all the search enigines indexes and I would sell lotsa
v-i-a-g-r-a :-)

Read about apache, subdomains, mod_rewrite and read a tutorial about
php. Then decide (with the new knowledge) how you are gonna set this up
because there are some choices to be made.

Once you have done that I'd be happy to help with your code.

--
Arjen
May 30 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.