Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
index.html and index.php aren't automatically loading
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
CobraNMU
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 76
Location: Naperville, IL

PostPosted: Tue Apr 20, 2004 2:20 pm    Post subject: index.html and index.php aren't automatically loading Reply with quote

Hey guys. A friend got me to try out gentoo. Been pretty smooth up to now, but I've run into a wall. I have apache2 running with mysql and mod_php. All of it works fine, as long as I type in the full address. If I try to go to http://IPADDRESS/~rob/ it doesn't load up the index.html in there.

The only line I could think to check looks like the following:
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>

Any help would be greatly appreciated.
Thanks,
Rob
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Apr 20, 2004 3:30 pm    Post subject: Reply with quote

To access the user home directories you need to specify the ServName as defined in apache.conf.
If you did not specify this, it will try to deduce its name from /etc/hosts, but it's a better idea to put this in manually.
in /etc/hosts:
Code:
127.0.0.1      localhost
ip.ad.dre.ss  <hostname.domainname> <hostname>


and in apache.conf:
Code:
ServerName hostname.domainname


This way it should work both ways.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
coax
Apprentice
Apprentice


Joined: 08 Sep 2003
Posts: 231
Location: Antwerp - Belgium

PostPosted: Tue Apr 20, 2004 3:34 pm    Post subject: Reply with quote

Also make sure apache has read permissions on the home directories. (and the public_html dirs)
_________________
- There is no such thing as having too many computers -
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