Hi Michael, Thanks for that.
I have been going through the error_log and access_log and following them when I am accessing the pages. The following entry in the access log is all that I get 202.6.132.62 - - [08/Jul/2002:17:05:07 +0930] "GET / HTTP/1.1" 403 312 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; APC)" I had it working earlier and then decided that I needed to allow access for user's home dirs as this was not working. Any ideas from this error?? It seems weird seeing that the error_log shows nothing. Cheers, Shannon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael Viron Sent: Monday, 8 July 2002 12:39 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] Apache DocumentRoot Actually, in 8.2, you change the DocumentRoot Setting at the top of /etc/httpd/conf/httpd.conf not commonhttpd.conf . The next thing you have to do, is in commonhttpd.conf, you need to change this set of lines: # # This should be changed to whatever you set DocumentRoot to. # <Directory /var/www/html> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options -Indexes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> If the directory does not have one of the following files (by default), you will get an access forbidden error (since the default configuration disallows directory browsing) DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm Of course, after making any changes you must restart apache (by doing "/etc/rc.d/init.d/httpd restart" without the quotes) These are all guesses as to what's causing the problem. Since you've not posted what's in your error_log file (in /var/log/httpd), it's difficult to say whether it is a permissions problem or an apache configuration problem. If you could send something to the list as to what is showing up in your error_log file (a few lines, preferably), I'm sure you'll get much more specific feedback as to what the problem is. Michael -- Michael Viron Project Manager / Primary Developer / Online Operations Manager General Education Online http://www.findaschool.org/ At 08:45 PM 7/7/2002 +0930, you wrote: >Thanks for the info, never really thought about looking at the >commonhttpd.conf file, however my problem still occurs... > >I guess my question comes down to this.... > >What are the permission/ownership requirements of DocumentRoot >directories??? > >Cheers, > >Shannon > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Todd Slater >Sent: Sunday, 7 July 2002 00:37 >To: [EMAIL PROTECTED] >Subject: Re: [newbie] Apache DocumentRoot > > >On Sun, 7 Jul 2002 00:12:26 +0930 >"Shannon" <[EMAIL PROTECTED]> wrote: > >> Hi There people, >> >> I just installed Mandrake 8.2 onto my new server and as part of that >> install I installed the default Apache Server >> Apache-AdvancedExtranetServer 1.3.23 >> >> I have tried changing the default DocumentRoot setting to something >> other than /var/www however whenever I do this I always get a >Forbidden >> error when attempting to access the pages in the new DocumentRoot. I >> have played around by chmod'ing the new dir to increasingly higher >> levels of permissions however the error still appears. >> >> This not only applies to the default website on this server, but any >> Virtual Hosts that I Include in the httpd.conf file through the >Include >> tag give the same result. >> >> Can anyone shed some light as to how I would get a new DocumentRoot >> setting to function correctly. >> >> Kind regards, >> >> Shannon > >Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, >and specify document root in /etc/httpd/conf/commonhttpd.conf. > >What did you chmod your new root folder to? > >Did you stop and restart httpd? > >Could you access your site before you changed the root directory? > >Todd > >-- >Todd Slater >I am entirely certain that twenty years from now we will look back at >education as it is practiced in most schools today and wonder that we >could have tolerated anything so primitive. (John W. Gardner) > > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com >
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com