Код: Выделить всё
ServerAdmin webmaster@localhost
ServerName exemple2.domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Однако, если я добавлю эту строку
Код: Выделить всё
DocumentRoot /var/www/html/wordpress/Я хочу, чтобы URL-адрес не менялся при отображении содержимого моей страницы worpress.
Если я добавлю это
Код: Выделить всё
Redirect 301 / http://exemple2.domain.comОбратите внимание, что я установил cname с exemple2.domain.com на exemple1. domain.com (у моего провайдера) и у меня есть VPS
Спасибо
В файле /etc/apache2/sites-available мой файл 000-default.conf выглядит так
Код: Выделить всё
ServerAdmin webmaster@localhost
ServerName exemple2.domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Подробнее здесь: https://stackoverflow.com/questions/786 ... vps-apache
Мобильная версия