Pages

Wednesday, November 12, 2014

Linux httpd / web server directory permission and virtualhost


##################################
###########################################

vi   /etc/httpd/conf/httpd.conf

<Directory "/home/FTP_FILES/movie">
 #Options FollowSymLinks
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride None
 Allow from all
</Directory>



<VirtualHost 203.XX.XX.1:80>
    ServerAdmin technical@tayabkhan.com
    DocumentRoot /home/FTP_FILES/
    ServerName ftp.tayabkhan.com
    ErrorLog logs/tayabkhan.com-error_log
    CustomLog logs/tayabkhan.com-access_log common
</VirtualHost>

No comments:

Post a Comment