Posted On March 29, 2019

Apache Multiple Domains Config

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Apache Multiple Domains Config
vim /ect/httpd/conf/httpd.conf
<VirtualHost *:80>
     ServerAdmin [email protected]
     ServerName kimconnect.com
     ServerAlias www.kimconnect.com
     DocumentRoot /home/www/kimconnect.com/
#     ErrorLog /home/www/kimconnect.com/logs/error.log
#     CustomLog /home/www/kimconnect.com/logs/access.log combined
</VirtualHost>
 
Setup FTP Server:
vim /etc/vsftpd/vsftpd.conf
# line 12: no anonymous
 
anonymous_enable=
NO
# line 80,81: uncomment ( allow ascii mode )
 
ascii_upload_enable=YES
ascii_download_enable=YES
# line 95, 96: uncomment ( enable chroot )
 
chroot_local_user=NO
chroot_list_enable=YES
# line 98: uncomment ( specify chroot list )
 
chroot_list_file=/etc/vsftpd/chroot_list
# line 104: uncomment
 
ls_recurse_enable=YES
# add at the last line
 
# specify root directory ( if don’t specify, users’ home directory become FTP home directory)
 
local_root=/home/www/
# use localtime
 
use_localtime=YES
[root@www ~]#
vim /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
kim
=========== set selinux to permit ftp change directory ============
setseboll -P ftp_home_dir on
======== memcached and shit =========
yum install memcached
vim /etc/php.ini
==== add this line ====
extension=memcache.so
chkconfig –add memcached
======= phpMyAdmin ===
vim /etc/httpd/conf.d/phpMyAdmin.conf
——– allow from LAN —–
Allow from 127.0.0.1 108.224.10.118 192.168.1.0/24

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Gallery2 Random Highlight Mod

There's a SQL technical limitation where one may not update a table based on its…

Invoke Commands on Remote Computers [To Install Applications]

$computers=@( 'pc1', 'pc2' ) $commandString="choco install pgadmin4 -y --ignore-checksums" function invokeCommand{ param( $computers, $commandString, $credentials…

Updating SSL Certificates on Active Directory Federation Services (ADFS) Server

Scripted Version Notes: Part 1: Adding Cert to ADFS Server # Import Cert and get…