x10Hosting Forums

Corporate Free Hosting for the Masses.


x10Hosting wishes you a great Year!

Register

Reply
 
LinkBack Thread Tools Display Modes
x10 Sophmore

javajenius's Avatar

Join Date: Jan 2008
Posts: 235
Credits: 281
javajenius will become famous soon enough
Quote  
05-16-2008, 11:21 PM
Some help with apache..

I have my own virtual linux server up and running and i came across a problem.
I created a couple of users, and I need to make each user have his/her own apache web directory root.
Is there anyway to do this automatically or will I have to write my own script?

Like here:

Code:
Listen 80
NameVirtualHost *

<VirtualHost *>
ServerName www.domain.com
DocumentRoot /home/httpd/user1/htdocs/
</VirtualHost>

<VirtualHost *>
ServerName subdomain.domain.com
DocumentRoot /home/httpd/user2/htdocs/subdomain/
</VirtualHost>

Last edited by javajenius; 05-16-2008 at 11:24 PM.
Reply With Quote
javajenius is offlineReport Post
Lord Of The Keys

LHVWB's Avatar

Join Date: Jan 2008
Posts: 1,279
Credits: 9,245
LHVWB is a jewel in the rough
Location: Australia

Send a message via MSN to LHVWB
Quote  
05-16-2008, 11:38 PM
Re: Some help with apache..

* Moved to computers and technology forum, this thread is more about computer configuration than actually programming.
Reply With Quote
LHVWB is offlineReport Post
x10 Sophmore

javajenius's Avatar

Join Date: Jan 2008
Posts: 235
Credits: 281
javajenius will become famous soon enough
Quote  
05-16-2008, 11:42 PM
Re: Some help with apache..

^Actually I think i said that i need to create a script to do this automatically, but its fine.
Reply With Quote
javajenius is offlineReport Post
x10Hosting Member

Join Date: Mar 2008
Posts: 25
Credits: 436
misson is on a distinguished road
Quote  
05-18-2008, 08:54 PM
Re: Some help with apache..

Looking over the documentation for DocumentRoot (and <VirtualHost>), it looks like your options are to write a script to create the configuration (as you mentioned) or write a module if you want to automatically set DocumentRoot. If you're using Apache 1.3, the source for mod_example may be helpful in writing a module.

Alternatively, if you don't have many users and create new ones infrequently, automatic configuration may not be worth the effort.
Reply With Quote
misson is offlineReport Post
x10 Sophmore

javajenius's Avatar

Join Date: Jan 2008
Posts: 235
Credits: 281
javajenius will become famous soon enough
Quote  
05-18-2008, 10:18 PM
Re: Some help with apache..

Actually, i need do to it automatically (for a project im working on), so i will try to work on it. Thanks for your reply.

Last edited by javajenius; 05-18-2008 at 10:19 PM.
Reply With Quote
javajenius is offlineReport Post
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error : Apache is working on your cPanel® and WHM™ Server bxcrrcr Free Hosting 1 02-20-2008 06:15 AM
configuring php on localhost ufclan Scripts & 3rd Party Apps 15 01-22-2008 09:34 AM
installing Apache in Localhost. naim4u Tutorials 5 01-20-2008 05:46 AM


All times are GMT -5. The time now is 07:36 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios