Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Web Server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Tue Dec 09, 2003 8:25 pm    Post subject: Apache Web Server Reply with quote

hi there..

very quick question - i have got the apache server all set up on my computer (httpd) and am ready to stick the website on... just wanting to know what is the default directory that apache looks in for the website, and how can i change it?

thanks

offie
Back to top
View user's profile Send private message
cvstealth
n00b
n00b


Joined: 03 Mar 2003
Posts: 9

PostPosted: Tue Dec 09, 2003 8:45 pm    Post subject: Reply with quote

the default is /home/httpd to change it you need to change this line in the httpd.conf

ServerRoot "/home/httpd"
Back to top
View user's profile Send private message
malloc
l33t
l33t


Joined: 19 Sep 2003
Posts: 762

PostPosted: Tue Dec 09, 2003 8:56 pm    Post subject: Reply with quote

cvstealth wrote:
the default is /home/httpd to change it you need to change this line in the httpd.conf

ServerRoot "/home/httpd"

That's not right, ServerRoot is usually /etc/apache and it's the default root for the apache daemon , what you want to change is DocumentRoot wich is the document root for your html pages
Back to top
View user's profile Send private message
fetzwiesenbaer
n00b
n00b


Joined: 25 Jul 2003
Posts: 52

PostPosted: Tue Dec 09, 2003 8:58 pm    Post subject: Reply with quote

If you change the default directory in /etc/apache/conf/apache.conf you have to change DocumentRoot and in /etc/apacha/conf/commonapache.conf the lines
Code:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory /what/ever/you/want>


In the Gentoo-Newsletter (Oct. 2003) you can read, that default directory is set to /var/www/localhost

Quote:
Improved support for virtual hosting and web-based applications
In the coming weeks, the Gentoo Linux project will be releasing updates for Apache and all web-based packages, to make it easier to use Gentoo Linux on servers that host more than one website at once. As part of these changes, the default location of the 'htdocs' directory - the directory where your website goes - will change from /home/httpd to /var/www/localhost. For servers needing to support more than one website at a time, new tools - webapp-config and vhost-config - and a 'vhosts' USE flag will be introduced to help with managing and installing web-based applications and virtual hosts.
Back to top
View user's profile Send private message
S
n00b
n00b


Joined: 26 Oct 2003
Posts: 16

PostPosted: Tue Dec 09, 2003 9:16 pm    Post subject: true Reply with quote

if you emerged apache in the past 2 months, it automatically sets up /var/www/localhost/htdocs as the default...so look there
_________________
There are only 10 types of people in the world: Those who understand binary and those who don't.
My Site
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum