View previous topic :: View next topic |
Author |
Message |
iancognito85 Apprentice

Joined: 31 Dec 2002 Posts: 283 Location: United Kingdom
|
Posted: Tue Dec 09, 2003 8:25 pm Post subject: Apache Web Server |
|
|
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 |
|
 |
cvstealth n00b

Joined: 03 Mar 2003 Posts: 9
|
Posted: Tue Dec 09, 2003 8:45 pm Post subject: |
|
|
the default is /home/httpd to change it you need to change this line in the httpd.conf
ServerRoot "/home/httpd" |
|
Back to top |
|
 |
malloc l33t


Joined: 19 Sep 2003 Posts: 762
|
Posted: Tue Dec 09, 2003 8:56 pm Post subject: |
|
|
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 |
|
 |
fetzwiesenbaer n00b

Joined: 25 Jul 2003 Posts: 52
|
Posted: Tue Dec 09, 2003 8:58 pm Post subject: |
|
|
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 |
|
 |
S n00b

Joined: 26 Oct 2003 Posts: 16
|
Posted: Tue Dec 09, 2003 9:16 pm Post subject: true |
|
|
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 |
|
 |
|