LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-05-2003, 06:12 AM   #1
navajo
LQ Newbie
 
Registered: May 2003
Posts: 6

Rep: Reputation: 0
Question Apache & two webs to serve.


Hi ladys and gentlemans

I have configured apache in my Mandrake 9.1 and run propertly. I have the problem that in my computer there are two users and both wanna locate their webs in the same computer. I thought that I should add two new servers and under their accounts create directories to keep their webs. The problem is that: Apache run at first a default server which root document folder is /var/www/html. But now i wanna create two new folder to alocate two webs per examle in /home/antonio and /home/carmen. The question is if to check the web located in the default server under /var/www/html I must type in my browser http://localhost... how can I reach the diferent webs under diferent users.
How should I name the folder under their accounts?.. it is not critical the name? per example, www or public_html

Thank you very much everybody
 
Old 06-05-2003, 06:45 AM   #2
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
you should try to look in the httpd.conf file and look for virtual directories... I think you should add /home/~username (f.e. /home/restless) to it.. I am not sure tho..

I just run 3 websites from the /var/www/htdocs/ directory and give the my user account owner permissions...

chown restless /var/www/htdocs/site1


I'm sure someone can help you more and can tell you it more specific.
 
Old 06-05-2003, 06:56 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
By default anything put in /home/username/public_html should be available via http://servername/~username but you could also use either aliases to alias http://servername/someDir to /home/username/public_html or name based virtual hosts in which case you could have http://firstwebsite.foo and http://secondwebsite.bar on the same machine.

Another even lazier option is so long as you have your server configured to follow symlinks you could just symlink /home/username/public_html to /your/path/htdocs.

Which option sounds most suitable for you?

cheers

Jamie

Last edited by jharris; 06-05-2003 at 06:57 AM.
 
Old 06-05-2003, 02:57 PM   #4
navajo
LQ Newbie
 
Registered: May 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank people!! Im gonna work in your advices.
 
  


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 won't serve pages gvaught Linux - Networking 6 12-08-2004 10:37 PM
apache just won't serve flash.. help ! Mandangelo Programming 6 06-23-2004 07:56 AM
Apache Server won't serve up large files perrond Linux - Networking 4 06-21-2004 11:53 AM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 06:26 PM
How do I get Apache to serve the right docs from the right directories? gomer1701ems Linux - Software 1 06-11-2001 10:29 PM


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