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

Random Notes about WSUS

#Install the PowerShell Windows Update module $checkModule=Get-Module -ListAvailable -Name PSWindowsUpdate if(!($checkModule)){ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #…

Basic CSS: Set the Font Family of an Element

<style>.red-text {color: red;}p {font-size: 16px;}</style><h2 class="red-text">CatPhotoApp</h2><main><p class="red-text">Click here to view more <a href="#">cat photos</a>.</p><a href="#"><img…

PowerShell: Check Windows Computers for Specific KB’s

# Check for specific KBs $kbs='KB5010790','KB5010419' $computernames=@('WINDOWS001','WINDOWS002') $regexIP = [regex] "\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b" $names=foreach($computername in $computernames){ if($computername…