Я включил файл virtualhost .conf в свой httpd.conf со следующим содержанием:
root@phpbb3:/usr/local/etc/apache24 # cat ./sites-enabled/000-www.domain.com.conf
<VirtualHost *:*>
ServerName www.domain.com
Redirect 301 / https://discordapp.com/invite/xxxxx
</VirtualHost>
Однако при доступе к url www.domain.com я получаю forum.domain.com , почему я не могу понять, должно быть, я неправильно сконфигурировал что-то, пытаясь создать некоторые конфигурации virtualHost, но теперь я удалил их все, кроме www.domain.com, и я по-прежнему не могу выполнить перенаправление на discordapp.com ..
root@phpbb3:/usr/local/etc/apache24 # apachectl -S
VirtualHost configuration:
*:* www.domain.com (/usr/local/etc/apache24/sites-
enabled/000-www.domain.com.conf:1)
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80
Попробуйте заменить Redirect 301 / https://discordapp.com/invite/xxxxx
на Redirect постоянный / https: // discordapp .com / invite / xxxxx
или Redirect / https://discordapp.com/invite/xxxxx[12136estive