Last active
March 6, 2017 12:58
-
-
Save IlyaZha/099fbb203c70a0e3a1ae6f331bd16c3b to your computer and use it in GitHub Desktop.
Apache vhosts manual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vhost_alias - модуль для апача. установить включить | |
dnsmasq установить | |
создать /etc/dnsmasq.d/local.com.conf с текстом address=/local.com/127.0.0.1 | |
В конфиг апача: | |
<VirtualHost *:80> | |
UseCanonicalName Off | |
ServerName www.local.com | |
ServerAdmin [email protected] | |
ServerAlias *.local.com | |
php_admin_value memory_limit 2048M | |
php_admin_value max_input_vars 1000000 | |
php_value upload_max_filesize 140M | |
php_value post_max_size 140M | |
php_value max_execution_time 60 | |
php_admin_value sendmail_path "/usr/bin/env catchmail -f [email protected]" | |
VirtualDocumentRoot /var/www/%1/ | |
<Directory /var/www/> | |
Options FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
Перезапустить апач. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment