View previous topic :: View next topic |
Author |
Message |
CobraNMU Tux's lil' helper
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Tue Apr 20, 2004 2:20 pm Post subject: index.html and index.php aren't automatically loading |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Apr 20, 2004 3:30 pm Post subject: |
|
|
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 |
|
|
coax Apprentice
Joined: 08 Sep 2003 Posts: 231 Location: Antwerp - Belgium
|
Posted: Tue Apr 20, 2004 3:34 pm Post subject: |
|
|
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 |
|
|
|