Re: [CentOS] Remote upload apache files

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



Tom Elsesser wrote:
> Hi all,
>  I need to upload files to /var/www/html on our remote centos box. The
> perms on /var/www/html are stock from the install, 

the 'normal' way to do this is to setup a vhost in /etc/httpd/conf.d/
and setup the docroot for that in /home/<someusername>/public_html ;
change the perms there to satisfy what apache needs, and set

" chcon -R   -u system_u -r object_r -t httpd_sys_content_t
/home/<username>/public_html/ "

and you are done, just upload your content under
/home/<username>/public_html/

-- 
Karanbir Singh : http://www.karan.org/ : 2522219@icq
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux