Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-07-2005, 05:42 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
Changing the DocumentRoot in Apache2

hi all!

I'm a newbie in Linux,last week I installed Ubuntu 5.04 in my laptop
I had a question regarding apache2 which I installed just now.

My question is:
Where & how do you change the DocumentRoot (var/www/apache)?

I found some information on the net that if you want to change the document root you'll need to change the DocumentRoot in the httpd.conf
But the thing is i couldn't even find the word document root in the httpd.conf
and i assume that the httpd.conf is the same as apache2.conf but still there is nothing saying DocumentRoot. All I could find is ServerRoot

I just wanted to change the DocumentROot into different folder actually.

Any help would would be appreciated, thanks!

Last edited by firaysinafets; 04-07-2005 at 06:27 AM.
Old 04-07-2005, 06:27 AM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 210Reputation: 210Reputation: 210
Try typing in a console: man httpd if nothing appears you need to install the apache-manual.

Last edited by {BBI}Nexus{BBI}; 04-07-2005 at 06:30 AM.
Old 04-07-2005, 10:07 AM   #3
Registered: May 2004
Location: Holland
Distribution: Debian
Posts: 33

Rep: Reputation: 15
The apache 2 config is modular. You can have multiple virtual servers with multiple Documentroots by editing files in sites-available in /etc/apache2/ and using the comand a2ensite. See /usr/share/doc/apache2


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
Setting Apache Virtualhost Default Document? Seventh Linux - Software 1 03-21-2005 11:47 AM
WebDav folder NOT under Document Root? Possible? xymian Linux - Networking 0 01-18-2005 05:52 PM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 05:44 PM
Document root on SSH kidestranged Linux - Software 1 01-22-2004 08:05 AM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 07:10 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration