LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2004, 05:52 PM   #1
carminejg3
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Exclamation Virtual hosts Help


Hi I wanted to know if this would work... Or if someone could give me help.

I'm trying to create a site that would allow different users in different directories but all on the same red hat linux box edit webpages.

the site domain.com would have 2 virtual directories like so:

PS (DOT) is in placement of .

domain(DOT)com/classifieds
domain(DOT)com/free

but

user1 would be able to add content to the classifieds directory.
user2 would be allowed to add content to the free.


<VirtualHost *>
ServerName classifieds(DOT)domain(DOT)com
ServerAlias www(DOT)classifieds(DOT)domain(DOT)com classifieds(DOT)domain.com
ServerAdmin webmaster@domain(DOT)com
DocumentRoot /home/user1/public_html/classifieds
ScriptAlias /cgi-bin/ /home/user1/public_html/classifieds/cgi-bin/
</VirtualHost>

<VirtualHost *>
ServerName free(DOT)domain(DOT)com
ServerAlias www(DOT)free(DOT)domain(DOT)com free(DOT)domain(DOT)com
ServerAdmin webmaster@domain(DOT)com
DocumentRoot /home/user2/public_html/free
ScriptAlias /cgi-bin/ /home/user2/public_html/free/cgi-bin/
</VirtualHost>


so would this work? or would i need to do something different?

Thanks

Carmine
 
Old 12-22-2004, 12:27 AM   #2
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Did you google for this? Take a look at this page:

http://www.google.com/search?hl=en&q...=Google+Search

There are many sources on a first-page google or the apache documentation itself.
 
Old 12-22-2004, 03:47 PM   #3
carminejg3
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Well this is for site visitors

I'm working with ftp users for the site.... I tried googling the answers just seems this psat month google went from awesome to crappy results..
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
Help with Virtual Hosts? econnections Linux - Newbie 3 07-02-2005 01:39 PM
virtual hosts... Digital_Err0r Linux - Newbie 25 03-25-2004 04:58 PM
Virtual Hosts chris Linux - General 1 11-20-2001 10:13 PM


All times are GMT -5. The time now is 03:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration