LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-07-2003, 03:15 PM   #1
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Rep: Reputation: 15
apache default


Hey, I am running red hat 9...and I am trying to set up my virtual host. I set it up at a ip based host and I want the root document directory to be /var/www/slsl ..... but the root document directory is /var/www/html ..... I have changed it by editing the virtual host, but it doesn't seem to work and by default goes to /var/www/html everytime. What I am doing wrong?
 
Old 05-07-2003, 03:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Forgot to restart httpd?

Cheers,
Tink
 
Old 05-07-2003, 03:53 PM   #3
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
I restarted it, and it's doing the same thing...thanx for the tip though
 
Old 05-07-2003, 04:04 PM   #4
KennyK
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: Redhat 8.0, 9.0 Suse 9.0 Pro
Posts: 129

Rep: Reputation: 15
Did you change .... DocumentRoot "/var/www/html"

In the apache conf file?
 
Old 05-07-2003, 05:09 PM   #5
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
no...how do I do that?
 
Old 05-07-2003, 05:12 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Open up /etc/httpd/conf/httpd.conf and change the section that looks like this:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

So if you want the document root to be /var/www/html/slsl it would be:

DocumentRoot "/var/www/html/slsl"

Then restart httpd:

/etc/init.d/httpd restart

and you should be good to go.
 
Old 05-07-2003, 05:48 PM   #7
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
Ok...I will try that, but I have a question. I want to be able to host two websites off of the same machine. I thought that was done by setting up virtual servers. I guess I am lost in that, if I can only go to one folder when a request comes into the machine, then how do I set up virtual hosts?...anyway...I'm sure it's all newbie to you all, but thanx for helping
 
Old 05-07-2003, 05:56 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Post your <Virtual Host> entries.
 
  


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 Default Index Cool_Hand_Luke Linux - Newbie 7 03-25-2005 11:16 AM
Default Apache Directory emperorjordan Mandriva 8 02-26-2004 11:07 PM
apache default inst.. Robin01 Linux - Newbie 6 09-24-2003 01:18 PM
Apache default page?? andy18 Linux - General 6 07-16-2003 02:57 AM
apache default page davee Linux - Newbie 6 02-17-2003 09:46 AM

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

All times are GMT -5. The time now is 11:08 PM.

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