View previous topic :: View next topic |
Author |
Message |
tfg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Jul 2004 Posts: 74 Location: the Netherlands
|
Posted: Thu May 31, 2007 11:57 am Post subject: [solved]Apache2 at Gentoo - where to put the main index.html |
|
|
Hi,
Recently I installed apache2 on my Gentoo LAN server to set up a simple (intranet) website.
I spent quite a lot of time trying to figure just where to put my main index.html...
I searched the config files, the man page, documentation at the official Apache page, Google, some apache forums, this forum... but I couldn't find how to just simply set up one simple web page. I found how to setup webpages for each user of my server (i.e. http://10.0.0.1/~[username]/index.html), but that's not what I want. I just want one single page.
Could anyone please tell me what the default directory is of the main website (i.e. http://10.0.0.1/index.html) in Apache 2 at a Gentoo server? Or point me to a document where I can find this info ?
Thank you very much in advance for your help.
-tfg
Last edited by tfg on Thu May 31, 2007 1:25 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Errtu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/87726397545488a650cfd4.gif)
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Thu May 31, 2007 11:59 am Post subject: |
|
|
It's in /var/www/localhost/htdocs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
elgato319 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 15 Sep 2005 Posts: 546
|
Posted: Thu May 31, 2007 12:52 pm Post subject: |
|
|
The default vhost config for this is here:
/etc/apache2/vhosts.d/00_default_vhost.conf |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tfg n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Jul 2004 Posts: 74 Location: the Netherlands
|
Posted: Thu May 31, 2007 1:24 pm Post subject: |
|
|
Thanks Errtu and elgato319
I put my site in /var/www/localhost/htdocs and it works fine now.
I also had a look in /etc/apache2/vhosts.d/00_default_vhost.conf and now it's all more clear to me. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|