У меня есть один домен и поддомен, которые должны указывать на две разные папки, я пробовал эту помощь, но все же у меня есть проблемы. ( https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 )
www.wasamar.com.ng | wasamar.com.ng -> / var / www / html / wasamar / public
это файл виртуального хоста (/etc/apache2/sites-available/wasamar.com.ng.conf)
ServerName wasamar.com.ng
ServerAlias www.wasamar.com.ng
ServerAdmin info@wasamar.com.ng
DocumentRoot /var/www/html/wasamar/public
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
www.ts.wasamar.com.ng | ts.wasamar.com.ng -> / var / www / html / wasamar_ts / public
это файл виртуального хоста (/etc/apache2/sites-available/ts.wasamar.com.ng.conf)
ServerName ts.wasamar.com.ng
ServerAlias www.ts.wasamar.com.ng
ServerAdmin info@wasamar.com.ng
DocumentRoot /var/www/html/wasamar_ts/public/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
Вставка файла apache.conf http://pastebin.com/dnDfB21y
Как мне этого добиться?
sudo a2ensite wasamar.com.ng.conf
и sudo a2ensite ts.wasamar.com.ng.conf
позвольте мне добавить мою основную конфигурацию (/etc/apache2/apache2.conf), пожалуйста, посмотрите.