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

1-Liner to Find Host of Virtual Machine in Hyper-V

PS C:\Users\testAdmin> (get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")hyperv01.intranet.kimconnect.com

Quick Script to Mount Remote UNC Paths as Local Drive Letters

Simple Mount: # Mapping a drive $username='domain\testAdmin' $password='PASSWORD' $remotePath='\\UNCSERVER\SHAREPATH\Backup' $unavailableDriveLetters=(Get-Volume).DriveLetter|sort $availableDriveLetters=.{(65..90|%{[char]$_})|?{$_ -notin $unavailableDriveLetters}} [char]$firstAvailableDriveLetter=$availableDriveLetters[0] $command="net…

Linux: Enable PowerShell Remoting WinRM Client on Ubuntu 20.04

This note is a work-in-progress as the NTLM authentication support module by Microsoft for Ubuntu…
Other project: DragonCoin.com