RE: Apache server read permissions

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

 



> 
> ...And I see that answer is the '.htaccess' file is not readable. But
there
> is NO .htaccess file in this directory. I am using Webmin to configure
this
> site. 
> 

Are you trying to restrict access to this dir?

jp -No I am not. I want clients to have read-only access. The directory and
its contents have 'rw_r__r__' permissions.

> >From a module within Webmin, I edited the directives as such;
> ServerName www.domainname.com
> DocumentRoot /var/www/html/ddd
> ServerAlias ddd
> ServerPath /var/www/html/ddd
> 
> What should I put in the .htaccess file?
> 
> Oddly, there is no virtual server portion in the httpd2.conf file.
Although
> Webmin should have, it appears Webmin didn't add the virtual server entry
to
> the file. What is the proper syntax so I can edit it manually?
> 


standard rpm installs of apache use the conf file in
/etc/httpd/conf/httpd.conf  is that the one you are looking in?

The file only file we have is '/etc/httpd/conf/httpd2.conf'.

I have never had a problem with webmin doing what I wanted it to do.

jp -Deleted the virtual server via Webmin and recreated it. Webmin added all
the directives to httpd2.conf correctly.


For name based Vhosts you need a line in there like this:

NameVirtualHost ipaddressto.listen.to

<VirtualHost ipaddressfrom.above>
    DocumentRoot "/var/www/html/ddd"
    ServerName "www.domainname.com:80"
    ServerAlias "domain.com"
</VirtualHost>


jp -Added that. What should I add to the .htaccess file?

Thank you,


Bret



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
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