LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2005, 03:36 AM   #1
fai
LQ Newbie
 
Registered: Jul 2005
Location: Hong Kong
Distribution: debian 3.1
Posts: 7

Rep: Reputation: 0
Apache 1.3.33 and subdomain


Hi all
I am using Debian 3.1 with LAMP installed
Apache 1.3.33,PHP 4.3.11 and Mysql 4.1
And now i would like open it to my friends so that they can publish their homepage
And here is the question :
Some of my friends want to have their own web site with subdomain provided by simply adding a folder under public_html
for example :

domain = www.demo.com

when user create a directory named diary
then they can visit it by typing : diary.demo.com instead of www.demo.com/diary

Virtualhost config :
<VirtualHost *>
ServerName www.demo.com
DocumentRoot /home/demo/public_html/
</VirtualHost>

I know the subdomain can be config by hard-coded in httpd.conf
but seems it is not efficient and non-sense

I know this question had been asked by the someone here for many times
and i had search through the web for solution
I am not sure that if can be achieved by using the mod_rewrite in apache
but seems mod_rewrite only support apache 2.x,right?
And I want to keep using Apache 1.3.33 if possible

Hope it is not boring for your guys for this boring post
Hope i can get some hints from here
Hope...*
And thanks for everyone for reading it
 
Old 07-15-2005, 03:49 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
It can be done by mod_rewrite, the two documents that you need are:
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://httpd.apache.org/docs/misc/rewriteguide.html
 
  


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
Yet another apache domain/subdomain problem xtra Linux - Newbie 2 08-18-2004 07:30 AM
subdomain and apache ziggie216 Linux - Newbie 1 11-12-2003 02:36 PM
Subdomain help DoobyWho Linux - General 3 04-14-2003 06:51 PM
how to setup subdomain for users in apache? earl Linux - Security 5 12-05-2002 07:49 AM
Subdomain and apache! eXor Linux - Networking 1 10-13-2002 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 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