Re: Apache server read permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux