Saturday, November 24, 2012

amazon linux ami–apache2 bing mulit domian

1.amazon linux ami apache2 bing multi domain server.

open conf file to write:

vim /etc/httpd/conf/httpd.conf

write file to it:

<VirtualHost *:80>
DocumentRoot "/var/www/html/wordpress"
ServerName blog.pkrss.com
</Virtualhost>



restart apache

/etc/init.d/httpd reload



2.setup ftp.

yum install vsftpd –y

create user:like this

groupadd pkrss
useradd -s /sbin/nologin -g pkrss -d /var/www/html pkrss
passwd pkrss
chown -R pkrss:pkrss /var/www/html
chmod -R a+rwx /var/www/html





vim vsftpd.conf


after:anonymous_enable=YES


add:

anonymous_enable=NO
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=127.0.0.1
chroot_local_user=yes




restart vsftpd:

/etc/init.d/vsftpd reload


No comments: