mike8706
09-25-2002, 10:33 PM
I dont know what I'm doing wrong. I made a new directory and put an index.html file in it. And put the correct information in the apache conf file. But it still says Forbidden in my browser! Please help me.
|
Click to See Complete Forum and Search --> : Always says 403 Forbidden mike8706 09-25-2002, 10:33 PM I dont know what I'm doing wrong. I made a new directory and put an index.html file in it. And put the correct information in the apache conf file. But it still says Forbidden in my browser! Please help me. JohnT 09-25-2002, 10:48 PM Originally posted by mike8706 I dont know what I'm doing wrong. I made a new directory and put an index.html file in it. And put the correct information in the apache conf file. But it still says Forbidden in my browser! Please help me. Are your permissions set correctly on the folder for your user profile? bdl 09-25-2002, 10:48 PM Where is the directory? What are the permissions on the directory and on the index.html file? For example, if you have a newly created directory, it must have at least '555' permissions (r_xr_xr_x) in order to allow everyone to execute / read the directory. The ideal perms would be '755' (rwxr_xr_x) for all directories under your own web htdoc structure. The file must also have a minimum '444' (r__r__r__) permissions, so that everyone can read the file. Again, the ideal would be '644' (rw_r__r__) for any files you have under any given directory. mike8706 09-25-2002, 10:56 PM I changed the permissions and changed the group and user ownership to apache, but it doesn't work.:confused: I put it in the /var/www/linux directory. bdl 09-25-2002, 11:11 PM Ok, so can you see files under /var/www? What info did you put in the apache config file? Are you trying to use linux as a virtual host or simply a subdir under the root directory? Does your 'DirectoryIndex' show 'index.html' as a valid index file? mike8706 09-25-2002, 11:18 PM Where in the conf file do I put the DirectoryIndex? I'm not running any virtual servers. Just the main server. JohnT 09-25-2002, 11:19 PM Originally posted by mike8706 I changed the permissions and changed the group and user ownership to apache, but it doesn't work.:confused: I put it in the /var/www/linux directory. How about the file your trying to access? mike8706 09-25-2002, 11:21 PM Yep, I changed it when I changed the directory. Should the user name be apache? bdl 09-25-2002, 11:28 PM Well, the username / group shouldn't necessarily be 'apache', it would probably more likely just be the 'root' user. Take a look at the ownership on the other files under /var/www. Search the httpd.conf file for 'DirectoryIndex' and you'll see a listing somewhat similar to this: <IfModule mod_dir.c> DirectoryIndex index.html index.php index.htm </IfModule> You'll note my config allows for three different index file types. mike8706 09-25-2002, 11:31 PM That section isn't in mine. mike8706 09-25-2002, 11:37 PM Sorry, sleep is calling. Please post what ever you think is helpful. Later bdl 09-25-2002, 11:38 PM Originally posted by mike8706 That section isn't in mine. Odd, every httpd.conf file should have 'DirectoryIndex' in it. What distro / apache version are you using? mike8706 09-26-2002, 07:56 AM Apache 1.3.23 on mandrake 8.2 justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |