Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Apache2 at Gentoo - where to put the main index.html
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
tfg
n00b
n00b


Joined: 05 Jul 2004
Posts: 74
Location: the Netherlands

PostPosted: Thu May 31, 2007 11:57 am    Post subject: [solved]Apache2 at Gentoo - where to put the main index.html Reply with quote

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
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Thu May 31, 2007 11:59 am    Post subject: Reply with quote

It's in /var/www/localhost/htdocs
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Thu May 31, 2007 12:52 pm    Post subject: Reply with quote

The default vhost config for this is here:

/etc/apache2/vhosts.d/00_default_vhost.conf
Back to top
View user's profile Send private message
tfg
n00b
n00b


Joined: 05 Jul 2004
Posts: 74
Location: the Netherlands

PostPosted: Thu May 31, 2007 1:24 pm    Post subject: Reply with quote

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
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