LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-04-2002, 04:59 AM   #1
earl
LQ Newbie
 
Registered: Jan 2002
Location: Dipolog City, Philippines
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
how to setup subdomain for users in apache?


how to setup apache configurations for having the subdomain url for the users in giving webspace in the /home/user/public_html, provided that we don't touch anything in the DNS configuration. the url should be http://user.domain.dom, instead of http://domain.dom/~user.

so automatically, everytime u add users, they will have their subdomain for the webpages.
 
Old 12-04-2002, 03:29 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Allow me to bounce that question back: what does a browser have to know/do to be able to resolve "user.domain.com" w/o using DNS?
 
Old 12-04-2002, 05:49 PM   #3
Arf
LQ Newbie
 
Registered: Dec 2002
Location: Under my desk
Posts: 6

Rep: Reputation: 0
Guessing... Go to an IP number?
 
Old 12-04-2002, 07:19 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Ok. When "domain.dom" has say 1.2.3.4, what address can "user.domain.dom" resolve to when earl doesn't want to "touch anything in the DNS configuration" to alias it?
 
Old 12-04-2002, 08:35 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The quickest way that I can think of to do this is to use a wildcard DNS entry for the subdomains and some mod_rewrite rules.
 
Old 12-05-2002, 07:49 AM   #6
Arf
LQ Newbie
 
Registered: Dec 2002
Location: Under my desk
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by unSpawn
Ok. When "domain.dom" has say 1.2.3.4, what address can "user.domain.dom" resolve to when earl doesn't want to "touch anything in the DNS configuration" to alias it?
This is getting a little silly. By now I'd simply modify the httpd.conf file (etc.) and call it a day but I'll entertain the question with the following responses...

My solution is to write an index.cgi that reads the requested URL info and forwards the browser to a specified subdirectory. I know that would work.

Can this be done via a .htaccess file using Redirect?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3.33 and subdomain fai Linux - Software 1 07-15-2005 03:49 AM
setup an apachie subdomain sporkit Linux - Networking 4 07-29-2004 04:45 AM
DNS & Subdomain Setup Murpe Linux - Networking 0 03-10-2004 11:00 AM
subdomain and apache ziggie216 Linux - Newbie 1 11-12-2003 02:36 PM
Subdomain and apache! eXor Linux - Networking 1 10-13-2002 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration