On Fri, 2003-10-03 at 14:34, James D. Parra wrote: > Okay, I am at a complete loss. Try this link: http://www.freewebmasterhelp.com/tutorials/htaccess/1 > > I made all of the recommendations posted and determined the following; > > 1) Apache is running and can serve its default page from http://localhost > > 2) All file system permissions are set correctly. > > 3) It appears that, maybe, something in the global settings is overriding > setting in the virtual server. > > Here is the Virtual Server lines from httpd2.conf; > > NameVirtualHost 192.168.101.101 > <VirtualHost 192.168.101.101> > DocumentRoot /var/www/html/ddd > ServerName "www.domainname.com:80" > ServerAlias "domainname.com" > ErrorLog /var/log/httpd/ddd_error_log > TransferLog /var/log/httpd/ddd_access_log > <Directory "/var/www/html/ddd"> > Options Indexes > order allow,deny > allow from all > </Directory> > </VirtualHost> > > ~~~~ > > Here is the error message when to page is visited; > > You don't have permission to access / on this server. > > and... > > You don't have permission to access /index.html on this server > > ~~~~ > >From the error log; > > [Fri Oct 03 11:26:29 2003] [crit] [client 192.168.101.201] (13)Permission > denied: /var/www/html/cci/.htaccess pcfg_openfile: unable to check htaccess > file, ensure it is readable > ~~~~ > > >From the access log; > 192.168.101.201 - - [03/Oct/2003:11:25:16 -0700] "GET / HTTP/1.1" 403 410 > 192.168.101.201 - - [03/Oct/2003:11:26:29 -0700] "GET /index.html HTTP/1.1" > 403 420 > ~~~~ > > > Many thanks for all of your responses. Any help with figuring this out will > be greatly appreciated. > > > James D. Parra > Systems Administrator, IT Dept. > Music Reports, Inc. > JamesP@xxxxxxxxxxxxxxxx > ph (818) 558-1400 x112 > fx (818) 558-3484 > > > -----Original Message----- > From: John Nichel [mailto:jnichel@xxxxxxxxxx] > Sent: Thursday, October 02, 2003 8:26 PM > To: redhat-list@xxxxxxxxxx > Subject: Re: Apache server read permissions > > > James D. Parra wrote: > > jp -No I am not. I want clients to have read-only access. The directory > and > > its contents have 'rw_r__r__' permissions. > > You do not need .htaccess to accomplish this. This will be handled by > the user/group Apache is running as vs. the user/group ownership of the > directory. > > > jp -Added that. What should I add to the .htaccess file? > > No .htaccess is needed unless you're trying to password protect a > directory. You either need to create/add an 'index.html' file in your > document root directory, or you need to add the word 'Indexes' to the > options of your vhost.... > > <VirtualHost *> > ServerName your.server.name > ServerAlias if.alias.exists > ScriptAlias /cgi-bin/ /path/to/cgi-bin/ > ServerAdmin admin@xxxxxxxxxxxxx > DocumentRoot /your/document/root > ErrorLog logs/error_log_name > CustomLog logs/access_log_name common > <Directory "/your/document/root"> > Options Indexes > </Directory> > </VirtualHost> > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list -- ---------------------------------------------------- Hart's PGP Key: 0x7BFF655E - http://TQMcube.com/hart_pgp.txt ---------------------------------------------------- Total Quality Management - A Commitment to Excellence Email acceptance policy: http://www.TQMcube.com/email_policy.html
Attachment:
signature.asc
Description: This is a digitally signed message part