On Sun, Jul 9, 2017 at 5:36 AM, Daniel <dferra...@gmail.com> wrote:

> Define specific customlog entries for your virtualhost, you will see they
> don't get any entries, another virtualhost is grabbing those requests and
> the redirect as you can see is not happening.
>
> apachectl -S as has been previously said would have helped you, but you
> just "grepped" it, it's not just about names, it can also be about greedy
> virtualhost name matching. Share it here so we can see.
>
>
Thanks for the help!  Here it is:

 root@webserver:/etc/apache2/sites-enabled# ls -l
total 0
lrwxrwxrwx 1 root root 40 May 11 19:10 000-default.conf ->
/etc/apache2/sites-available/jkl.com
lrwxrwxrwx 1 root root 40 May 11 19:09 jkl.com.conf ->
/etc/apache2/sites-available/jkl.com
lrwxrwxrwx 1 root root 47 May 11 19:10 aaa.bbb.name.conf ->
/etc/apache2/sites-available/aaa.bbb.name
lrwxrwxrwx 1 root root 41 May 11 19:11 yyy.com.conf ->
/etc/apache2/sites-available/yyy.com
lrwxrwxrwx 1 root root 43 Jul  5 20:43 abc.com ->
/etc/apache2/sites-available/abc.com
lrwxrwxrwx 1 root root 39 May 11 19:11 vvv.us.conf ->
/etc/apache2/sites-available/vvv.us
root@webserver:/etc/apache2/sites-enabled# cat abc.com
<VirtualHost *:80>
ServerName abc.com
ServerAlias *.abc.com
ServerAdmin bl...@jkl.com
Redirect / https://www.def.com/ghi#about
</VirtualHost>
root@webserver:/etc/apache2/sites-enabled# apache2ctl -S
AH00558: apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1. Set the 'ServerName' directive globally to
suppress this message
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server jkl.com
(/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost jkl.com
(/etc/apache2/sites-enabled/000-default.conf:1)
                 wild alias *.jkl.com
         port 80 namevhost jkl.com
(/etc/apache2/sites-enabled/jkl.com.conf:1)
                 wild alias *.jkl.com
         port 80 namevhost aaa.bbb.name
(/etc/apache2/sites-enabled/aaa.bbb.name.conf:1)
                 alias mcbride.name
                 alias algorithms.us
                 wild alias *.algorithms.us
         port 80 namevhost yyy.com
(/etc/apache2/sites-enabled/yyy.com.conf:1)
                 alias yyy.org
                 alias yyy.net
                 wild alias *.yyy.com
         port 80 namevhost vvv.us (/etc/apache2/sites-enabled/vvv.us.conf:1)
                 wild alias *.vvv.us
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

Reply via email to